Merge pull request #771 from z2015/feat/support-chinese-tag

feat: support chinese tag name
This commit is contained in:
Timothy 2023-11-14 11:37:32 +08:00 committed by GitHub
commit c83ae42230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ export const generateStaticParams = async () => {
const tagCounts = tagData as Record<string, number>
const tagKeys = Object.keys(tagCounts)
const paths = tagKeys.map((tag) => ({
tag: tag,
tag: encodeURI(tag),
}))
return paths
}