Add cover image for main page

This commit is contained in:
thiloho
2023-05-28 16:33:17 +02:00
parent 133ea165da
commit c18ca69f41
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
---
const { title, description, ogImage = "" } = Astro.props;
const { title, description, ogImage = "" } = Astro.props;
const imageUrl = "https://aurora.thilohohlt.com" + ogImage;
const imageUrl = ogImage ? Astro.url.origin + ogImage : Astro.url.origin + "/cover.jpg";
---
<head>