25 lines
612 B
TypeScript
25 lines
612 B
TypeScript
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
|
||
|
|
};
|
||
|
|
}
|