Change og:image property on head add main cover image

This commit is contained in:
thiloho
2023-05-25 11:43:37 +02:00
parent 99c8bd61d2
commit 37a4d6a625
2 changed files with 1 additions and 1 deletions

BIN
src/assets/cover.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 418 KiB

View File

@@ -1,7 +1,7 @@
--- ---
const { title, description, ogImage = "" } = Astro.props; const { title, description, ogImage = "" } = Astro.props;
const imageUrl = new URL(ogImage, Astro.url.origin); const imageUrl = ogImage.replace("localhost:3000", "aurora.thilohohlt.com");
--- ---
<head> <head>