Idk, tryin' to make i18n compatible. Doesn't rly work.

This commit is contained in:
2024-03-24 21:19:56 +01:00
parent ec72e14237
commit 0a6ccd4339
20 changed files with 693 additions and 157 deletions

View File

@ -1,31 +0,0 @@
---
import Navigation from '../components/Navigation.astro';
import Footer from '../components/Footer.astro';
import Hamburger from '../components/Hamburger.astro';
interface Props {
title: string;
lang: string;
}
const { title, lang } = Astro.props;
---
<!doctype html>
<html lang={lang}>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<Hamburger />
<Navigation />
<slot />
<Footer />
</body>
</html>

View File

@ -0,0 +1,15 @@
---
const { title, description, lang } = Astro.props;
---
<!DOCTYPE html>
<html lang={lang}>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content={description}>
<title>{title}</title>
</head>
<body>
<slot/>
</body>
</html>