Initial commit
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { homepageContent } from '$lib/content/homepage';
|
||||
import { staticPages, type StaticPageSlug } from '$lib/content/static-pages';
|
||||
|
||||
export const sharedPageContent = {
|
||||
navigation: homepageContent.navigation,
|
||||
services: homepageContent.services,
|
||||
testimonials: homepageContent.testimonials,
|
||||
booking: homepageContent.booking,
|
||||
footer: homepageContent.footer
|
||||
};
|
||||
|
||||
export function createHomepageRouteData() {
|
||||
return {
|
||||
content: homepageContent
|
||||
};
|
||||
}
|
||||
|
||||
export function createStaticRouteData(slug: StaticPageSlug) {
|
||||
return {
|
||||
content: sharedPageContent,
|
||||
page: staticPages[slug],
|
||||
slug
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user