Adds the shoot-type pages content and SEO foundation
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>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { PricingPackage, ShootType } from '../content/types.ts';
|
||||
import type { RoutePath } from '../navigation.ts';
|
||||
import type { PageMeta } from '../sitePages.ts';
|
||||
import { visiblePackages } from './visiblePackages.ts';
|
||||
import { shootPackage } from './shootPackage.ts';
|
||||
|
||||
// Where "Stuur een berichtje" goes: the contact page, with the shoot's
|
||||
// package preselected when that package is shown (BR-SF-01..03, FR-CP-09)
|
||||
@@ -9,11 +9,9 @@ export function shootContactLink(
|
||||
shoot: ShootType,
|
||||
packages: readonly PricingPackage[],
|
||||
) {
|
||||
const shown = visiblePackages(packages).some(
|
||||
(pkg) => pkg.id === shoot.packageId,
|
||||
);
|
||||
return shown && shoot.packageId !== undefined
|
||||
? { to: '/contact' as const, search: { pakket: shoot.packageId } }
|
||||
const pkg = shootPackage(shoot, packages);
|
||||
return pkg !== undefined
|
||||
? { to: '/contact' as const, search: { pakket: pkg.id } }
|
||||
: { to: '/contact' as const };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user