Skip to content

Commit

Permalink
wip: try serving og image from public foldeR
Browse files Browse the repository at this point in the history
  • Loading branch information
allison-truhlar committed Jul 17, 2024
1 parent 758bd93 commit ccd93ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
File renamed without changes
6 changes: 2 additions & 4 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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);
---

<html lang="en">
Expand All @@ -22,7 +20,7 @@ const ogImageUrl = new URL(scswLogo.src, siteBaseURL);
content="Janelia Open Science Software Intiative"
/>
<meta property="og:type" content="website" />
<meta property="og:image" content={ogImageUrl} />
<meta property="og:image" content={ogImageUrl.toString()} />
<meta property="og:url" content={Astro.url} />
<title>OSSI@Janelia</title>
<CustomStyles />
Expand Down

0 comments on commit ccd93ea

Please sign in to comment.