Skip to content

Commit

Permalink
fix: header links not working when path is not /
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenbupe committed Aug 14, 2024
1 parent 5b79369 commit dbc2a20
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ type Props = {
const { class: className } = Astro.props;
const links = [
{ href: "#about", text: "About" },
{ href: "#jobs", text: "Experience" },
{ href: "#projects", text: "Work" },
{ href: "/#about", text: "About" },
{ href: "/#jobs", text: "Experience" },
{ href: "/#projects", text: "Work" },
/* { href: "/blog", text: "Blog" }, */
{ href: "/resume.pdf", text: "Resume", external: true },
];
Expand Down Expand Up @@ -90,7 +90,7 @@ const links = [
<nav class="flex gap-4 items-center">
<a
class="text-lg tracking-tight font-semibold mx-2 text-foreground"
href="#home"
href="/#home"
>
<span class="text-foreground/70 mr-1 font-light">/</span
>rubenbupe
Expand Down Expand Up @@ -162,7 +162,7 @@ const links = [
<div class="flex items-center">
<a
class="text-lg tracking-tight font-semibold mx-2 text-foreground"
href="#home"
href="/#home"
>
<span class="text-foreground/70 mr-1 font-light">/</span
>rubenbupe
Expand Down

0 comments on commit dbc2a20

Please sign in to comment.