add titles and description to pages

This commit is contained in:
2026-06-03 20:31:46 +02:00
parent 9fe1b2043c
commit 70d65cfcfd
4 changed files with 29 additions and 1 deletions
+18 -1
View File
@@ -1,7 +1,24 @@
import { createFileRoute } from "@tanstack/react-router";
import { HOST_URL } from "#/config.ts";
import Home from "#/pages";
export const Route = createFileRoute("/")({ component: App });
export const Route = createFileRoute("/")({
head: () => ({
meta: [
{ title: "ChessScribe | Home" },
{
name: "description",
content: "Create PDFs of your chess games from a PGN file",
},
{
name: "keywords",
content: "chess, pgn, pdf, chess games, chess notation",
},
],
links: [{ rel: "canonical", href: HOST_URL }],
}),
component: App,
});
function App() {
return <Home />;