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:
@@ -21,6 +21,10 @@ declare module '@tanstack/react-router' {
|
||||
}
|
||||
}
|
||||
|
||||
// De statische head-tags uit index.html zijn alleen voor crawlers zonder
|
||||
// JavaScript. Vanaf hier beheren de routes ze, dus voorkom dubbele tags.
|
||||
document.querySelectorAll('head [data-fallback]').forEach((el) => el.remove());
|
||||
|
||||
// Render the app
|
||||
const rootElement = document.getElementById('root')!;
|
||||
if (!rootElement.innerHTML) {
|
||||
|
||||
Reference in New Issue
Block a user