diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 0310994..deee42b 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -19,10 +19,13 @@ const { } = Astro.props; const canonicalURL = new URL(Astro.url.pathname, Astro.site); + const socialImageURL = new URL( ogImage ? ogImage : SITE.ogImage, Astro.url.origin -); +).href; + +const fallbackImageURL = new URL(SITE.ogImage, Astro.url.origin).href; --- @@ -51,7 +54,12 @@ const socialImageURL = new URL( - +