mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Use more compatible OG tags
This commit is contained in:
@@ -63,6 +63,10 @@
|
|||||||
{#if defaultAuthor?.fediverse}
|
{#if defaultAuthor?.fediverse}
|
||||||
<meta name="fediverse:creator" content={defaultAuthor?.fediverse} />
|
<meta name="fediverse:creator" content={defaultAuthor?.fediverse} />
|
||||||
{/if}
|
{/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>
|
</svelte:head>
|
||||||
|
|
||||||
<SvelteSeo
|
<SvelteSeo
|
||||||
@@ -78,14 +82,7 @@
|
|||||||
}}
|
}}
|
||||||
openGraph={{
|
openGraph={{
|
||||||
title: data.post.title,
|
title: data.post.title,
|
||||||
description: data.post.description,
|
description: data.post.description
|
||||||
images: [
|
|
||||||
{
|
|
||||||
url: calcOgURL(data.post.slug, data.post.date, 1200).toString(),
|
|
||||||
width: 1200,
|
|
||||||
height: 1200 / 2,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user