aboutsummaryrefslogtreecommitdiff
path: root/src/components/HeaderLink.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/HeaderLink.astro')
-rw-r--r--src/components/HeaderLink.astro3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/HeaderLink.astro b/src/components/HeaderLink.astro
index c53880d..a18dd3c 100644
--- a/src/components/HeaderLink.astro
+++ b/src/components/HeaderLink.astro
@@ -1,5 +1,6 @@
---
import type { HTMLAttributes } from "astro/types";
+import { SITE_BASE } from "../consts";
type Props = HTMLAttributes<"a">;
@@ -10,7 +11,7 @@ const isActive = href === pathname || href === "/" + (subpath?.[0] || "");
---
<a
- href={"/astro-blog/" + href}
+ href={SITE_BASE + "/" + href}
class:list={[className, { active: isActive }]}
{...props}
>