mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 19:41:35 +01:00
Test og:image property
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
---
|
||||
const { title, description } = Astro.props;
|
||||
const { title, description, ogImage = "" } = Astro.props;
|
||||
|
||||
const imageUrl = new URL(ogImage, Astro.url.origin);
|
||||
---
|
||||
|
||||
<head>
|
||||
@@ -14,4 +16,5 @@ const { title, description } = Astro.props;
|
||||
const storedTheme = localStorage.getItem("theme");
|
||||
document.documentElement.className = storedTheme;
|
||||
</script>
|
||||
</head>
|
||||
<meta property="og:image" content={imageUrl} />
|
||||
</head>
|
||||
Reference in New Issue
Block a user