From 809a0497a9dc5ca8de1d9a8c986e4317dc4153d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Thu, 7 Sep 2023 12:51:53 +0200 Subject: [PATCH] Fix generating meta image URLs --- src/layouts/BaseLayout.astro | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 9a6b971..8231f95 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -18,7 +18,6 @@ const { } = Astro.props; const title = `${titleProp ? `${titleProp} - ` : ''}Cats Of Tech`; -const imageUrl = image ? new URL(image, Astro.url) : null; --- @@ -35,10 +34,13 @@ const imageUrl = image ? new URL(image, Astro.url) : null; { - imageUrl && ( + image && ( <> - - + + ) }