From 77e65cb92c258752f57b37fc4e57424debe06744 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 11 Jun 2025 00:12:57 +0400 Subject: refactor: simplify Analytics component and update BaseLayout * style: enhance Header component and update SCSS imports - Improved the Header component by adding a site title with styling. - Wrapped navigation links in a div for better structure. - Updated SCSS imports across multiple components for consistency. * refactor: simplify Analytics component and update BaseLayout - 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. --- src/components/Analytics.astro | 15 --------------- src/layouts/BaseLayout.astro | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/components/Analytics.astro b/src/components/Analytics.astro index 428ad4f..8235dea 100644 --- a/src/components/Analytics.astro +++ b/src/components/Analytics.astro @@ -1,17 +1,2 @@ ---- -type Props = { - readonly title: string; -}; - -const path = Astro.url.pathname; -const { title } = Astro.props; ---- - - - - - 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; @@ -26,6 +26,6 @@ const { description, title } = Astro.props; - + -- cgit v1.2.3