mirror of
https://github.com/valentineus/popov.link.git
synced 2025-07-04 08:30:27 +03:00
Refactor Analytics and Head components
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user