0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 16:10:26 +03:00
Files
popov.link/src/layouts/BaseLayout.astro

31 lines
649 B
Plaintext
Raw Normal View History

2024-09-04 21:16:37 +00:00
---
2024-09-12 22:42:08 +00:00
import Analytics from "../components/Analytics.astro";
2024-09-17 23:24:24 +00:00
import Footer from "../components/Footer.astro";
2024-09-05 15:01:13 +00:00
import Head from "../components/Head.astro";
import Header from "../components/Header.astro";
2024-09-12 11:31:39 +00:00
import "../scss/global.scss";
2024-09-11 22:03:55 +00:00
2024-09-12 16:36:57 +00:00
type Props = {
readonly description?: string;
readonly title?: string;
};
2024-09-12 22:57:55 +00:00
const { description, title } = Astro.props;
2024-09-04 21:16:37 +00:00
---
<html lang="ru">
2024-09-12 22:57:55 +00:00
<Head
description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
title={title ?? import.meta.env.DEFAULT_TITLE}
/>
2024-09-04 21:16:37 +00:00
<body>
2024-09-05 15:01:13 +00:00
<Header />
<main>
2024-09-05 15:01:13 +00:00
<slot />
</main>
2024-09-12 22:57:55 +00:00
<Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
2024-09-17 23:24:24 +00:00
<Footer />
2024-09-04 21:16:37 +00:00
</body>
</html>