commit | 3963283e1db2323065a12060b10ed34f731c603c | [log] [tgz] |
---|---|---|
author | Samuel Shuert <me@thecoded.prof> | Mon Apr 29 20:54:19 2024 -0400 |
committer | Samuel Shuert <coded@clicks.codes> | Tue Apr 30 00:55:40 2024 +0000 |
tree | 38ee4885d3204d2341256ed6913f2bf3383e8791 | |
parent | 9335ceff9eb423108d2419c551225551ebe7472b [diff] [blame] |
Major progress on blog page, set defaults Change-Id: I94ac9d96ff56fdb1b795ef938e37d4e91c4c6bc2 Reviewed-on: https://git.clicks.codes/c/Coded/thecoded.prof/+/678 Tested-by: Samuel Shuert <coded@clicks.codes> Reviewed-by: Samuel Shuert <coded@clicks.codes>
diff --git a/sites/blog/src/components/HeaderLink.astro b/sites/blog/src/components/HeaderLink.astro index bb600fb..7e70577 100644 --- a/sites/blog/src/components/HeaderLink.astro +++ b/sites/blog/src/components/HeaderLink.astro
@@ -7,6 +7,7 @@ const { pathname } = Astro.url; const subpath = pathname.match(/[^\/]+/g); +console.log(subpath, pathname) const isActive = href === pathname || href === '/' + subpath?.[0]; ---