Five pages under /soorten-fotoshoots/<id> with draft copy awaiting Andrea's approval (DRAFT markers), structured data (Service, BreadcrumbList, FAQPage), sitemap and Lighthouse entries. The overview route moves to soorten-fotoshoots/index.tsx. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1.2 KiB
TypeScript
31 lines
1.2 KiB
TypeScript
import { createFileRoute } from '@tanstack/react-router';
|
|
import NotFound from '../../components/StatusPage/NotFound';
|
|
import ShootPage from '../../components/shoots/ShootPage/ShootPage';
|
|
import StructuredData from '../../components/StructuredData/StructuredData';
|
|
import newbornPage from '../../content/shootPages/newborn';
|
|
import siteContent from '../../content/siteContent';
|
|
import { shootPageView } from '../../lib/shootPageView';
|
|
import { pageHead, shootPageGraph } from '../../seo';
|
|
import { shootPageSources } from './-shootPageSources';
|
|
|
|
export const Route = createFileRoute('/soorten-fotoshoots/newborn')({
|
|
head: () => pageHead('/soorten-fotoshoots/newborn'),
|
|
component: NewbornPage,
|
|
});
|
|
|
|
// The newborn page. The structured data lives here, not in head(): head() is
|
|
// part of the main bundle, the component is split off, so the page texts
|
|
// only load with this page.
|
|
function NewbornPage() {
|
|
const view = shootPageView('newborn', newbornPage, shootPageSources);
|
|
if (view === undefined) return <NotFound />;
|
|
return (
|
|
<>
|
|
{shootPageGraph(view, siteContent).map((data) => (
|
|
<StructuredData key={data['@type']} data={data} />
|
|
))}
|
|
<ShootPage view={view} />
|
|
</>
|
|
);
|
|
}
|