150 lines
4.8 KiB
TypeScript
150 lines
4.8 KiB
TypeScript
import { t } from './i18n/index.ts';
|
|
import type { RoutePath } from './navigation.ts';
|
|
|
|
// Het register van alle pagina's: één bron voor de head van elke route en
|
|
// voor sitemap.xml. Door het type moet elke route hier staan, en niets anders.
|
|
//
|
|
// Richtlijn: titel max. ~60 tekens inclusief " | Andrea Slop Fotografie",
|
|
// beschrijving max. ~155 tekens; daarna kort Google ze af.
|
|
export interface PageMeta {
|
|
title: string;
|
|
description: string;
|
|
// false = noindex en niet in de sitemap (placeholders). Gaat een echte
|
|
// pagina live, zet dit dan op true.
|
|
indexed: boolean;
|
|
ogImage?: { path: string; width: number; height: number; alt: string };
|
|
}
|
|
|
|
export interface SitePage extends PageMeta {
|
|
path: string;
|
|
}
|
|
|
|
const sitePages: Record<RoutePath, PageMeta> = {
|
|
'/': {
|
|
title: t('seo.pages.home.title'),
|
|
description: t('seo.pages.home.description'),
|
|
indexed: true,
|
|
},
|
|
'/over-mij': {
|
|
title: t('seo.pages.over-mij.title'),
|
|
description: t('seo.pages.over-mij.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-over-mij.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.over-mij.ogImageAlt'),
|
|
},
|
|
},
|
|
'/portfolio': {
|
|
title: t('seo.pages.portfolio.title'),
|
|
description: t('seo.pages.portfolio.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-portfolio.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.portfolio.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots': {
|
|
title: t('seo.pages.soorten-fotoshoots.title'),
|
|
description: t('seo.pages.soorten-fotoshoots.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-soorten-fotoshoots.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.soorten-fotoshoots.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots/newborn': {
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
title: t('seo.pages.newborn.title'),
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
description: t('seo.pages.newborn.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-newborn.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.newborn.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots/zwangerschap': {
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
title: t('seo.pages.zwangerschap.title'),
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
description: t('seo.pages.zwangerschap.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-zwangerschap.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.zwangerschap.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots/gezin': {
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
title: t('seo.pages.gezin.title'),
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
description: t('seo.pages.gezin.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-gezin.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.gezin.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots/loveshoot': {
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
title: t('seo.pages.loveshoot.title'),
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
description: t('seo.pages.loveshoot.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-loveshoot.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.loveshoot.ogImageAlt'),
|
|
},
|
|
},
|
|
'/soorten-fotoshoots/portret': {
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
title: t('seo.pages.portret.title'),
|
|
// DRAFT(CON-ST-03): awaiting Andrea's approval
|
|
description: t('seo.pages.portret.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-portret.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.portret.ogImageAlt'),
|
|
},
|
|
},
|
|
'/contact': {
|
|
title: t('seo.pages.contact.title'),
|
|
description: t('seo.pages.contact.description'),
|
|
indexed: true,
|
|
ogImage: {
|
|
path: '/og-contact.jpg',
|
|
width: 1200,
|
|
height: 630,
|
|
alt: t('seo.pages.contact.ogImageAlt'),
|
|
},
|
|
},
|
|
'/privacyverklaring': {
|
|
title: t('seo.pages.privacyverklaring.title'),
|
|
description: t('seo.pages.privacyverklaring.description'),
|
|
indexed: false,
|
|
},
|
|
};
|
|
|
|
// Het register als lijst, voor de sitemap
|
|
export function pageList(pages: Record<string, PageMeta>): SitePage[] {
|
|
return Object.entries(pages).map(([path, meta]) => ({ path, ...meta }));
|
|
}
|
|
|
|
export default sitePages;
|