Skip to content

Commit

Permalink
fix: remove spaces in automatically generated category links
Browse files Browse the repository at this point in the history
  • Loading branch information
recoluan committed Sep 12, 2024
1 parent 14d47f7 commit 18e8d4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useNavbarConfig = (): Array<MenuLinkGroup> => {
// @ts-ignore
text: c.label,
// @ts-ignore
link: `/categories/${convertToPinyin(c.label)}/1.html`,
link: `/categories/${convertToPinyin(c.categoryValue)}/1.html`,
}))
},
{
Expand All @@ -47,7 +47,7 @@ export const useNavbarConfig = (): Array<MenuLinkGroup> => {
// @ts-ignore
text: t.label,
// @ts-ignore
link: `/tags/${convertToPinyin(t.label)}/1.html`,
link: `/tags/${convertToPinyin(t.categoryValue)}/1.html`,
}))
},
]
Expand Down

0 comments on commit 18e8d4e

Please sign in to comment.