From 52681a21e092a395647446011cdc555d474b12fe Mon Sep 17 00:00:00 2001 From: Dustin Thurston Date: Tue, 28 Jul 2026 16:29:29 -0400 Subject: [PATCH] add analytics --- src/components/commonHead.astro | 56 ++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/src/components/commonHead.astro b/src/components/commonHead.astro index 3114b09..ff61007 100644 --- a/src/components/commonHead.astro +++ b/src/components/commonHead.astro @@ -5,30 +5,36 @@ const { title } = Astro.props; --- - - - - - {title} - - + - + // Listen for system theme changes + window + .matchMedia("(prefers-color-scheme: dark)") + .addEventListener("change", updateTheme); + + -- 2.51.2