From f56d73ca2f434b03a22fc9bea22abea9277bdb2a Mon Sep 17 00:00:00 2001 From: HJfod <60038575+HJfod@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:59:38 +0200 Subject: [PATCH] fix links --- .github/workflows/deploy.yml | 2 +- src/components/Button.astro | 3 ++- src/components/Link.astro | 3 ++- src/components/Navbar.astro | 8 +++++--- src/pages/index.astro | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index eb7e5db..19144df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,4 +36,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 \ No newline at end of file + uses: actions/deploy-pages@v4 diff --git a/src/components/Button.astro b/src/components/Button.astro index 9e66a02..10ac7a2 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -1,8 +1,9 @@ --- const { link, style } = Astro.props; +const url = `${import.meta.env.BASE_URL}${link}`; --- - + diff --git a/src/components/Link.astro b/src/components/Link.astro index 62f2976..49159b8 100644 --- a/src/components/Link.astro +++ b/src/components/Link.astro @@ -1,8 +1,9 @@ --- const { href, style, noUnderline } = Astro.props; const classList = `${style} ${noUnderline === 'true' ? 'no-link-underline' : ''}`; +const url = `${import.meta.env.BASE_URL}${href}`; --- -