From d1c4d505fe8ebb43436e124f8f2ed90f2732b71a Mon Sep 17 00:00:00 2001 From: Max Richter Date: Sat, 6 Apr 2024 16:28:10 +0200 Subject: [PATCH] feat: add active state underline to nav --- src/components/Nav.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 2dce42d..b494437 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -4,7 +4,7 @@ import Logo from "./Logo.astro"; import ToggleTheme from "@components/ThemeToggle.svelte"; function isActive(path: string) { - return Astro.url.pathname === path ? "active" : ""; + return Astro.url.pathname === path; } const t = useTranslations(Astro.url); @@ -47,7 +47,7 @@ const paths = [