diff options
author | Valentin Popov <valentin@popov.link> | 2025-06-10 23:12:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-10 23:12:57 +0300 |
commit | 77e65cb92c258752f57b37fc4e57424debe06744 (patch) | |
tree | 597e9d1eb0f7b291e661a0d48af93ab1d29765c3 /src/components | |
parent | 34ce9f6162ae4ff2d0278760cce28227d82433ed (diff) | |
download | popov.link-77e65cb92c258752f57b37fc4e57424debe06744.tar.xz popov.link-77e65cb92c258752f57b37fc4e57424debe06744.zip |
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.
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/Analytics.astro | 15 |
1 files changed, 0 insertions, 15 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; ---- - <!-- AppMetrix --> <script is:inline src="https://appmetrix.com/pixel/T5X0z12SoASBV8Dv"></script> - -<!-- GoatCounter --> -<script is:inline data-goatcounter="https://analytics.popov.link/count" src="//gc.zgo.at/count.js"></script> -<noscript> - <img alt="pixel" src={`https://analytics.popov.link/count?p=${encodeURI(path)}&t=${encodeURI(title)}`} /> -</noscript> |