From 472cba451afa06a1d8d2f617321b782d1f2e1a51 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sat, 6 Jul 2024 21:13:51 +0530 Subject: [PATCH] Attempt to fix relative img path bug --- src/components/misc/ImageWrapper.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/misc/ImageWrapper.astro b/src/components/misc/ImageWrapper.astro index 824ca85..d267c12 100644 --- a/src/components/misc/ImageWrapper.astro +++ b/src/components/misc/ImageWrapper.astro @@ -22,7 +22,7 @@ const isLocal = !( src.startsWith("https") || src.startsWith("data:") ); -const isPublic = src.startsWith("/"); +// const isPublic = src.startsWith("/"); // TODO temporary workaround for images dynamic import // https://github.com/withastro/astro/issues/3373 @@ -43,6 +43,6 @@ const imageStyle = `object-position: ${position}`;
{isLocal && {alt} - {!isLocal && {alt} + {!isLocal && {alt}