Better handle project URLs
Some checks failed
Build and Deploy to Web Server / deploy (push) Has been cancelled
Some checks failed
Build and Deploy to Web Server / deploy (push) Has been cancelled
This commit is contained in:
@@ -21,7 +21,8 @@ export async function getStaticPaths() {
|
|||||||
|
|
||||||
return projects.map((project) => ({
|
return projects.map((project) => ({
|
||||||
params: {
|
params: {
|
||||||
slug: `${slugify(project.data.type)}/${slugify(project.data.slug)}`
|
type: slugify(project.data.type),
|
||||||
|
slug: slugify(project.data.slug)
|
||||||
},
|
},
|
||||||
props: { project }
|
props: { project }
|
||||||
}));
|
}));
|
Reference in New Issue
Block a user