From 1f54c30975f7ffe0aa20bf48c9c6912e8286b4be Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Sat, 17 Aug 2024 19:39:07 +0200 Subject: [PATCH] feat: add umami tracking --- src/components/BaseHead.astro | 37 ++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/src/components/BaseHead.astro b/src/components/BaseHead.astro index ffbf7ed..a58c783 100644 --- a/src/components/BaseHead.astro +++ b/src/components/BaseHead.astro @@ -1,18 +1,18 @@ --- // Import the global.css file here so that it is included on // all pages through the use of the component. -import { ViewTransitions } from 'astro:transitions'; -import '../styles/global.css'; +import { ViewTransitions } from "astro:transitions"; +import "../styles/global.css"; interface Props { - title: string; - description: string; - image?: string; + title: string; + description: string; + image?: string; } const canonicalURL = new URL(Astro.url.pathname, Astro.site); -const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props; +const { title, description, image = "/blog-placeholder-1.jpg" } = Astro.props; --- @@ -22,8 +22,20 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props; - - + + @@ -46,4 +58,11 @@ const { title, description, image = '/blog-placeholder-1.jpg' } = Astro.props; - \ No newline at end of file + + + + +