From 9eafcf1df37ce0f4275ed5f377f3a13d3007a1f0 Mon Sep 17 00:00:00 2001 From: deeenes Date: Mon, 29 Jan 2024 15:16:06 +0100 Subject: [PATCH] apply baseurl everywhere for hosting under subpath --- src/components/A.astro | 6 ++++++ src/components/Intro.astro | 3 ++- src/components/Map.svelte | 3 ++- src/components/Navigation.astro | 15 ++++++++------- src/layouts/BaseLayout.astro | 3 ++- src/pages/contact.astro | 5 +++-- src/shared/actions/map.ts | 9 +++++---- 7 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 src/components/A.astro diff --git a/src/components/A.astro b/src/components/A.astro new file mode 100644 index 0000000..c38ffbf --- /dev/null +++ b/src/components/A.astro @@ -0,0 +1,6 @@ +--- +const base = import.meta.env.BASE_URL; +const { href } = Astro.props; +--- + + diff --git a/src/components/Intro.astro b/src/components/Intro.astro index 5d18292..aa72f23 100644 --- a/src/components/Intro.astro +++ b/src/components/Intro.astro @@ -1,8 +1,9 @@ --- +const baseurl = import.meta.env.BASE_URL; ---
- +

Our goal is to acquire a functional understanding of the deregulation of signalling networks in disease and to apply this diff --git a/src/components/Map.svelte b/src/components/Map.svelte index 686fd03..ba3bbc8 100644 --- a/src/components/Map.svelte +++ b/src/components/Map.svelte @@ -9,9 +9,10 @@ export let markerMarkup: string = ''; const { latitude, longitude } = location; + const baseurl = import.meta.env.BASE_URL; -

+