aboutsummaryrefslogtreecommitdiff
path: root/src/layouts/BaseLayout.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/layouts/BaseLayout.astro')
-rw-r--r--src/layouts/BaseLayout.astro9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
index 6a253a8..8456916 100644
--- a/src/layouts/BaseLayout.astro
+++ b/src/layouts/BaseLayout.astro
@@ -9,17 +9,20 @@ type Props = {
readonly title?: string;
};
-const { title, description } = Astro.props;
+const { description, title } = Astro.props;
---
<html lang="ru">
- <Head title={title} description={description} />
+ <Head
+ description={description ?? import.meta.env.DEFAULT_DESCRIPTION}
+ title={title ?? import.meta.env.DEFAULT_TITLE}
+ />
<body>
<Header />
<main>
<slot />
</main>
- <Analytics />
+ <Analytics title={title ?? import.meta.env.DEFAULT_TITLE} />
</body>
</html>