From 2e4a9d0ce5beb649137ecc0ada455776d4e1297e Mon Sep 17 00:00:00 2001 From: SindreKjelsrud <sindre@kjelsrud.dev> Date: Mon, 26 Aug 2024 00:26:15 +0200 Subject: [PATCH] :truck: move jollyroger into img-folder Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev> --- public/{ => img}/jollyroger_dark.svg | 0 public/{ => img}/jollyroger_light.svg | 0 src/layouts/BlogPost.astro | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) rename public/{ => img}/jollyroger_dark.svg (100%) rename public/{ => img}/jollyroger_light.svg (100%) diff --git a/public/jollyroger_dark.svg b/public/img/jollyroger_dark.svg similarity index 100% rename from public/jollyroger_dark.svg rename to public/img/jollyroger_dark.svg diff --git a/public/jollyroger_light.svg b/public/img/jollyroger_light.svg similarity index 100% rename from public/jollyroger_light.svg rename to public/img/jollyroger_light.svg diff --git a/src/layouts/BlogPost.astro b/src/layouts/BlogPost.astro index 0bee52e..60121ba 100644 --- a/src/layouts/BlogPost.astro +++ b/src/layouts/BlogPost.astro @@ -12,7 +12,7 @@ const { title, description, pubDate } = Astro.props; const updateImageForTheme = () => { const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light'; - jollyroger.src = currentTheme === 'dark' ? '/jollyroger_dark.svg' : '/jollyroger_light.svg'; + jollyroger.src = currentTheme === 'dark' ? '/img/jollyroger_dark.svg' : '/img/jollyroger_light.svg'; }; updateImageForTheme(); @@ -33,7 +33,7 @@ const { title, description, pubDate } = Astro.props; <slot /> </div> <div class="flex items-center justify-center"> - <img src="/jollyroger_dark.svg" id="jr" class="md:w-48 w-40" alt="Jolly Roger"/> + <img src="/img/jollyroger_dark.svg" id="jr" class="md:w-48 w-40" alt="My custom jolly roger"/> </div> </article> </main>