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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user