blob: fe5c06472f387a3540e2aaa84af6b41f3e507392 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
---
import BaseHead from "@/components/BaseHead.astro";
import Footer from "@/components/layout/Footer.astro";
import Header from "@/components/layout/Header.astro";
import SkipLink from "@/components/SkipLink.astro";
import ThemeProvider from "@/components/ThemeProvider.astro";
import { siteConfig } from "@/site.config";
import type { SiteMeta } from "@/types";
interface Props {
meta: SiteMeta;
}
const {
meta: { articleDate, description = siteConfig.description, ogImage, title, lang },
} = Astro.props;
---
<html class="scroll-smooth" lang={lang ?? siteConfig.lang}>
<head>
<BaseHead
articleDate={articleDate}
description={description}
ogImage={ogImage}
title={title}
{...lang ? { lang } : {}}
/>
</head>
<body
class="bg-global-bg text-global-text mx-auto flex min-h-screen max-w-3xl flex-col px-4 pt-16 font-mono text-sm font-normal antialiased sm:px-8"
>
<ThemeProvider />
<SkipLink />
<Header />
<main id="main">
<slot />
</main>
<Footer />
</body>
</html>
|