From 118112f0b747ca7d86310db81e8620b811eb0f57 Mon Sep 17 00:00:00 2001
From: Valentin Popov
Date: Tue, 10 Jun 2025 20:09:34 +0000
Subject: 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(-)
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