diff options
| author | Valentin Popov <valentin@popov.link> | 2025-06-10 23:09:34 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2025-06-10 23:09:34 +0300 |
| commit | 118112f0b747ca7d86310db81e8620b811eb0f57 (patch) | |
| tree | 597e9d1eb0f7b291e661a0d48af93ab1d29765c3 /src/layouts/BaseLayout.astro | |
| parent | 47a0acab13e2c7f55d4a600256c29ecca54fa3f3 (diff) | |
| download | popov.link-header.tar.xz popov.link-header.zip | |
refactor: simplify Analytics component and update BaseLayoutheader
- Removed props from the Analytics component to streamline its usage.
- Updated BaseLayout to call Analytics without passing the title prop, ensuring default values are used.
Diffstat (limited to 'src/layouts/BaseLayout.astro')
| -rw-r--r-- | src/layouts/BaseLayout.astro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 0209c58..8ed13fd 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -14,8 +14,8 @@ const { description, title } = Astro.props; <html lang="ru"> <Head - description={description ?? import.meta.env.DEFAULT_DESCRIPTION} title={title ?? import.meta.env.DEFAULT_TITLE} + description={description ?? import.meta.env.DEFAULT_DESCRIPTION} /> <body> @@ -26,6 +26,6 @@ const { description, title } = Astro.props; <slot /> </main> - <Analytics title={title ?? import.meta.env.DEFAULT_TITLE} /> + <Analytics /> </body> </html> |
