Initial commit

This commit is contained in:
ponzischeme89
2026-05-02 08:26:18 +12:00
commit b7ea05f150
119 changed files with 13641 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
import { error, redirect } from '@sveltejs/kit';
import { staticPages, type StaticPageSlug } from '$lib/content/static-pages';
import { getSharedPageContent } from '$lib/server/content';
export async function load({ params }) {
if (params.slug === 'about-us') {
throw redirect(301, '/about');
}
const slug = params.slug as StaticPageSlug;
const page = staticPages[slug];
if (!page) {
throw error(404, 'Page not found');
}
return {
content: await getSharedPageContent(),
page,
slug
};
}