feat: add BaseLayout with SEO head tags and theme init script

Canonical/hreflang/OG tags derived from the locale dictionary, plus a
pre-paint script applying data-theme from localStorage or system
preference.
This commit is contained in:
2026-08-02 15:54:42 +02:00
parent 2606508713
commit 1d65bb7aa8
6 changed files with 238 additions and 21 deletions
+5 -9
View File
@@ -1,12 +1,8 @@
---
import BaseLayout from '../../layouts/BaseLayout.astro';
const locale = 'fr';
---
<html lang={locale}>
<head>
<meta charset="utf-8" />
<title>Ombrora</title>
</head>
<body>
<h1>Ombrora — FR</h1>
</body>
</html>
<BaseLayout locale={locale}>
<h1>Ombrora</h1>
</BaseLayout>