summaryrefslogtreecommitdiff
path: root/src/components/HeaderLink.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HeaderLink.astro')
-rw-r--r--src/components/HeaderLink.astro18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/components/HeaderLink.astro b/src/components/HeaderLink.astro
deleted file mode 100644
index 8c01f92..0000000
--- a/src/components/HeaderLink.astro
+++ /dev/null
@@ -1,18 +0,0 @@
----
-import type { HTMLAttributes } from "astro/types";
-
-type Props = HTMLAttributes<"a">;
-
-const { href, class: className, ...props } = Astro.props;
-const pathname = Astro.url.pathname;
-const isActive = href === pathname;
----
-
-<a {href} class:list={[className, { current: isActive }]} {...props}>
- <slot />
-</a>
-<style>
- a.current {
- font-weight: bolder;
- }
-</style>