fix: use tag name for display in tags page (#438)

Instead of slugified tags, original tag names will
be used for displaying tag names in the tags page.
This commit is contained in:
George Zhao
2025-02-08 12:46:16 +08:00
committed by satnaing
parent 26020bbd0e
commit a56b28bc2c
3 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ let tags = getUniqueTags(posts);
<Header activeNav="tags" />
<Main pageTitle="Tags" pageDesc="All the tags used in posts.">
<ul>
{tags.map(({ tag }) => <Tag {tag} size="lg" />)}
{tags.map(({ tag, tagName }) => <Tag {tag} {tagName} size="lg" />)}
</ul>
</Main>
<Footer />