upstream #1

Merged
jblu merged 1007 commits from upstream into main 2024-11-04 22:35:57 -06:00
Showing only changes of commit e35b76249c - Show all commits

View File

@ -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[] } }) {