diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 55ce003..a34b3e1 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -17,7 +17,10 @@ const { } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site); -const socialImageURL = new URL(ogImage, Astro.url.origin); +const socialImageURL = new URL( + ogImage ? ogImage : SITE.ogImage, + Astro.url.origin +); ---