27 lines
676 B
TypeScript
27 lines
676 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,
|
|
info: homepageContent.info,
|
|
footer: homepageContent.footer
|
|
};
|
|
|
|
export function createHomepageRouteData() {
|
|
return {
|
|
content: homepageContent
|
|
};
|
|
}
|
|
|
|
export function createStaticRouteData(slug: StaticPageSlug) {
|
|
return {
|
|
content: sharedPageContent,
|
|
generalEnquiryEnabled: false,
|
|
page: staticPages[slug],
|
|
slug
|
|
};
|
|
}
|