From ccd93ea3f95fdeb97c309550d0e06059fc297682 Mon Sep 17 00:00:00 2001 From: Allison Truhlar Date: Wed, 17 Jul 2024 16:42:38 -0400 Subject: [PATCH] wip: try serving og image from public foldeR --- .../SCSW_Logo_white_background.png | Bin src/layouts/BaseLayout.astro | 6 ++---- 2 files changed, 2 insertions(+), 4 deletions(-) rename {src/assets/images => public}/SCSW_Logo_white_background.png (100%) diff --git a/src/assets/images/SCSW_Logo_white_background.png b/public/SCSW_Logo_white_background.png similarity index 100% rename from src/assets/images/SCSW_Logo_white_background.png rename to public/SCSW_Logo_white_background.png diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index ae5331c..cfd0aaf 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -5,10 +5,8 @@ import CustomStyles from "../styles/CustomStyles.astro"; import Header from "../components/Header.astro"; import Footer from "../components/Footer.astro"; -import scswLogo from "../assets/images/SCSW_Logo_white_background.png"; - const siteBaseURL = new URL(Astro.url); -const ogImageUrl = new URL(scswLogo.src, siteBaseURL); +const ogImageUrl = new URL("/SCSW_Logo_white_background.png", siteBaseURL); --- @@ -22,7 +20,7 @@ const ogImageUrl = new URL(scswLogo.src, siteBaseURL); content="Janelia Open Science Software Intiative" /> - + OSSI@Janelia