Initial commit

This commit is contained in:
2026-05-06 22:38:06 +12:00
commit 0342b5fb9d
54 changed files with 22513 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { error } from '@sveltejs/kit';
import { getPageBySlug } from '$lib/server/content';
export async function load({ params }) {
const page = await getPageBySlug(params.slug);
if (!page || page.slug === 'home') {
throw error(404, 'Page not found.');
}
return { page };
}