Use more compatible OG tags

This commit is contained in:
Jade Ellis 2024-07-23 22:37:48 +01:00
parent 722637d530
commit f7ce4ebb06
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -63,6 +63,10 @@
{#if defaultAuthor?.fediverse}
<meta name="fediverse:creator" content={defaultAuthor?.fediverse} />
{/if}
<meta property="og:image" content={calcOgURL(data.post.slug, data.post.date, 1200).toString()} />
<meta property="og:image:width" content={(1200).toString()} />
<meta property="og:image:height" content={(1200 / 2).toString()} />
<meta property="og:image:type" content="image/png" />
</svelte:head>
<SvelteSeo
@ -78,14 +82,7 @@
}}
openGraph={{
title: data.post.title,
description: data.post.description,
images: [
{
url: calcOgURL(data.post.slug, data.post.date, 1200).toString(),
width: 1200,
height: 1200 / 2,
},
],
description: data.post.description
}}
/>