mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-12 22:38:04 +02:00
refactor(content-{blog,docs}): unify handling of tags (#7117)
This commit is contained in:
parent
ca718ccac0
commit
1156be3f20
24 changed files with 170 additions and 178 deletions
|
@ -114,7 +114,7 @@ export function getBlogTags({
|
|||
);
|
||||
|
||||
return _.mapValues(groups, ({tag, items: tagBlogPosts}) => ({
|
||||
name: tag.label,
|
||||
label: tag.label,
|
||||
items: tagBlogPosts.map((item) => item.id),
|
||||
permalink: tag.permalink,
|
||||
pages: paginateBlogPosts({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue