Adds per-page titles, meta descriptions, and the design favicon

Introduces pageHead() and siteHead in seo.ts for title, description, and
Open Graph tags, rendered through TanStack Router's HeadContent. Home and
Over mij get their own title and description. index.html now uses lang="nl"
and carries fallback tags for crawlers without JavaScript; main.tsx removes
them on startup to avoid duplicates. Replaces the Vite favicon with the
design's favicon.png (also as apple-touch-icon).

Remaining SEO work is tracked in Gitea issue #1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #2.
This commit is contained in:
2026-10-13 23:12:50 +02:00
co-authored by Claude Opus 5.5
parent 783d47bac2
commit 8f5841c6cb
8 changed files with 72 additions and 6 deletions
+31
View File
@@ -0,0 +1,31 @@
// Head-tags per pagina, voor de `head`-optie van een route. Titel en
// beschrijving komen later uit het CMS.
//
// Richtlijn: titel max. ~60 tekens, beschrijving max. ~155 tekens; daarna
// kort Google ze af in de zoekresultaten.
export function pageHead({
title,
description,
}: {
title: string;
description: string;
}) {
return {
meta: [
{ title },
{ name: 'description', content: description },
// Voor link-previews (WhatsApp, Facebook, LinkedIn)
{ property: 'og:title', content: title },
{ property: 'og:description', content: description },
],
};
}
// Tags die voor de hele site gelden
export const siteHead = {
meta: [
{ property: 'og:site_name', content: 'Andrea Slop Fotografie' },
{ property: 'og:locale', content: 'nl_NL' },
{ property: 'og:type', content: 'website' },
],
};