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(/\/$/, ''); ---- - - - - -