aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BaseLayout.astro
blob: a76861a70bf51f6fc8faf9a75f58770ab7a3b44c (plain) (blame)
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
---
import Analytics from "../components/Analytics.astro";
import Footer from "../components/Footer.astro";
import Head from "../components/Head.astro";
import Header from "../components/Header.astro";
import "../scss/global.scss";

type Props = {
	readonly description?: string;
	readonly title?: string;
};

const { description, title } = Astro.props;
---

<html lang="ru">
	<Head
		description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
		title={title ?? import.meta.env.DEFAULT_TITLE}
	/>

	<body>
		<Header />
		<main>
			<slot />
		</main>
		<Footer />
		<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
	</body>
</html>