From e954be1e0810327259e5ece01c5389f49252a963 Mon Sep 17 00:00:00 2001 From: Firq Date: Sat, 4 Mar 2023 21:57:55 +0100 Subject: [PATCH] Hopefully fixes image links --- astro.config.mjs | 2 +- src/components/ceCard.astro | 4 ++-- src/components/favouriteCard.astro | 2 +- src/components/navbar.astro | 2 +- src/components/servantCard.astro | 4 ++-- src/components/taCard.astro | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 77a62b0..ba01c05 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -3,7 +3,7 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ sitemap: true, - base: '/', + base: '/fgosite', outDir: 'public', publicDir: 'static', site: 'https://firq.pages.neshweb.net/fgosite/' diff --git a/src/components/ceCard.astro b/src/components/ceCard.astro index 9470e2f..84b52ca 100644 --- a/src/components/ceCard.astro +++ b/src/components/ceCard.astro @@ -7,7 +7,7 @@ export interface Props { const {mlb, link, name } = Astro.props; -const ce_img: string = `ce/${link}.webp`; +const ce_img: string = `/ce/${link}.webp`; let mlb_image: string = "mlbalign"; if(mlb === "false") { @@ -21,7 +21,7 @@ if(mlb === "false") { {name}
- Max-limit broken + Max-limit broken
diff --git a/src/components/favouriteCard.astro b/src/components/favouriteCard.astro index 7f0c518..b05b1eb 100644 --- a/src/components/favouriteCard.astro +++ b/src/components/favouriteCard.astro @@ -7,7 +7,7 @@ export interface Props { const {image, origin, name } = Astro.props; -const img: string = `favourites/${image}.webp`; +const img: string = `/favourites/${image}.webp`; --- diff --git a/src/components/navbar.astro b/src/components/navbar.astro index ddc8794..041bb70 100644 --- a/src/components/navbar.astro +++ b/src/components/navbar.astro @@ -3,7 +3,7 @@
- +