Ensure imageUrl is generated properly

This commit is contained in:
Maciej Pędzich 2023-09-03 18:55:16 +02:00
parent dda92399a7
commit 16783d9815

View File

@ -18,7 +18,7 @@ const {
} = Astro.props;
const title = `${titleProp ? `${titleProp} - ` : ''}Cats Of Tech`;
const imageUrl = image ? new URL(image, Astro.site) : null;
const imageUrl = image ? new URL(image, Astro.url) : null;
---
<html lang="en">