diff --git a/src/pages/projects/[...slug].astro b/src/pages/projects/[slug].astro similarity index 93% rename from src/pages/projects/[...slug].astro rename to src/pages/projects/[slug].astro index 69e90dd..c429b7b 100644 --- a/src/pages/projects/[...slug].astro +++ b/src/pages/projects/[slug].astro @@ -12,7 +12,10 @@ import { } from "@/lib/utils"; export async function getStaticPaths() { - const projects = await getCollection("projects"); + const projects = await getCollection("projects", ({ body }) => { + return body && body.trim().length > 0; + }); + return projects.map((project) => ({ params: { slug: project.id }, props: { project }