Fix #397: Adjust URL for Chinese Categories and Tags

This commit is contained in:
prototypa
2024-04-14 13:20:55 -04:00
parent c830d68321
commit f234e63eb4
9 changed files with 71 additions and 39 deletions

View File

@@ -40,8 +40,8 @@ const { Content } = post;
<>
{' '}
·{' '}
<a class="capitalize hover:underline inline-block" href={getPermalink(post.category, 'category')}>
{post.category.replaceAll('-', ' ')}
<a class="hover:underline inline-block" href={getPermalink(post.category.slug, 'category')}>
{post.category.title}
</a>
</>
)