diff --git a/src/components/layout/HeaderLink.astro b/src/components/layout/HeaderLink.astro index eafe49a..e4aea43 100644 --- a/src/components/layout/HeaderLink.astro +++ b/src/components/layout/HeaderLink.astro @@ -1,7 +1,6 @@ --- const { pathname } = Astro.url; -const { class: className, ...props } = Astro.props; -const href = props.href; +const { class: className, href, ...props } = Astro.props; const isActive = href === pathname || href === pathname.replace(/\/$/, ''); ---