feat: add some stuff

This commit is contained in:
2024-03-28 18:30:52 +01:00
parent d169df01f1
commit fa5d08e549
196 changed files with 2964 additions and 390 deletions

View File

@@ -11,7 +11,6 @@ export async function getStaticPaths() {
const paths = pages.map((page) => {
const [slug] = parseSlug(page.id);
return { params: { slug }, props: { ...page } };
});
@@ -24,6 +23,12 @@ const page = filterCollection(pages, locale).find((page) => {
return slug === Astro.params.slug;
});
if (!page) {
return new Response("Not found", {
status: 404,
});
}
const { Content } = await page.render();
---