refactor(content-{blog,docs}): unify handling of tags (#7117)

This commit is contained in:
Joshua Chen 2022-04-07 21:58:21 +08:00 committed by GitHub
parent ca718ccac0
commit 1156be3f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 170 additions and 178 deletions

View file

@ -56,7 +56,6 @@ export {
buildSshUrl,
} from './urlUtils';
export {
type Tag,
type FrontMatterTag,
normalizeFrontMatterTags,
groupTaggedItems,

View file

@ -7,12 +7,7 @@
import _ from 'lodash';
import {normalizeUrl} from './urlUtils';
export type Tag = {
label: string;
/** Permalink to this tag's page, without the `/tags/` base path. */
permalink: string;
};
import type {Tag} from '@docusaurus/types';
export type FrontMatterTag = string | Tag;