website-astro/src/layouts/BaseLayout.astro

35 lines
977 B
Plaintext
Raw Normal View History

2022-12-02 11:21:18 +01:00
---
import { t, astroI18n } from "astro-i18n";
2022-12-22 11:01:52 +01:00
astroI18n.init(Astro);
2022-12-02 11:21:18 +01:00
2022-12-22 11:01:52 +01:00
import "../styles/style.css";
2022-12-02 11:21:18 +01:00
2022-12-22 11:01:52 +01:00
import Header from "../components/Header.astro";
2022-12-28 10:36:15 +01:00
import Footer from "../components/Footer.astro";
2022-12-22 11:01:52 +01:00
2022-12-26 23:15:27 +01:00
const { pageTitle, titleColor } = Astro.props;
2022-12-02 11:21:18 +01:00
---
2022-12-22 11:01:52 +01:00
<html lang={astroI18n.langCode} dir="ltr">
2022-12-02 11:21:18 +01:00
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
2023-02-03 17:12:52 +01:00
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2022-12-02 11:21:18 +01:00
<title>{pageTitle} - Nicolas Arduin</title>
<meta name="description" content={t("seo.meta.description")} />
2023-02-03 17:12:52 +01:00
<meta name="robots" content="index,follow." />
<meta name="author" content="Nicolas Arduin" />
<meta name="subject" content="Développement de sites web, accessibilité." />
2022-12-02 11:21:18 +01:00
</head>
<body>
2022-12-05 20:50:35 +01:00
<div class="wrapper">
<Header />
<main id="skip-content" role="main">
2022-12-22 11:01:52 +01:00
<slot />
2022-12-05 20:50:35 +01:00
</main>
</div>
2022-12-28 10:36:15 +01:00
<Footer />
2022-12-02 11:21:18 +01:00
</body>
</html>