From 70663064a0c5ebf7848a5e22ab9f3af87ad62964 Mon Sep 17 00:00:00 2001 From: SindreKjelsrud Date: Thu, 29 May 2025 19:30:23 +0200 Subject: [PATCH] :fire: Removed unused component HeaderLink Signed-off-by: SindreKjelsrud --- src/components/HeaderLink.astro | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/components/HeaderLink.astro diff --git a/src/components/HeaderLink.astro b/src/components/HeaderLink.astro deleted file mode 100644 index dce58b1..0000000 --- a/src/components/HeaderLink.astro +++ /dev/null @@ -1,21 +0,0 @@ ---- -import type { HTMLAttributes } from 'astro/types'; - -type Props = HTMLAttributes<'a'>; - -const { href, class: className, ...props } = Astro.props; - -const { pathname } = Astro.url; -const isActive = href === pathname || href === pathname.replace(/\/$/, ''); ---- - - - - -