Format with prettier

This commit is contained in:
Timothy 2024-06-22 16:39:20 +08:00 committed by GitHub
parent e35b76249c
commit d9489346b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,7 +75,7 @@ export async function generateMetadata({
}
export const generateStaticParams = async () => {
return allBlogs.map((p) => ({ slug: p.slug.split("/").map(name => decodeURI(name)) }));
return allBlogs.map((p) => ({ slug: p.slug.split('/').map((name) => decodeURI(name)) }))
}
export default async function Page({ params }: { params: { slug: string[] } }) {