Make post name support chinese
This commit is contained in:
parent
3ea21afa0d
commit
e35b76249c
@ -75,9 +75,7 @@ export async function generateMetadata({
|
||||
}
|
||||
|
||||
export const generateStaticParams = async () => {
|
||||
const paths = allBlogs.map((p) => ({ slug: p.slug.split('/') }))
|
||||
|
||||
return paths
|
||||
return allBlogs.map((p) => ({ slug: p.slug.split("/").map(name => decodeURI(name)) }));
|
||||
}
|
||||
|
||||
export default async function Page({ params }: { params: { slug: string[] } }) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user