🐛 Fix description in SEO
This commit is contained in:
parent
4d21f3463a
commit
8317ee43fd
@ -32,7 +32,7 @@ const attachments = await fetchAttachmentMeta(data.body.attachments)
|
|||||||
<head>
|
<head>
|
||||||
<SEO
|
<SEO
|
||||||
title={data.body?.title ? data.body.title : `Post #${data.id}`}
|
title={data.body?.title ? data.body.title : `Post #${data.id}`}
|
||||||
description={data.body?.content}
|
description={data.body?.description ?? data.body?.content?.substring(0, 200)}
|
||||||
openGraph={{
|
openGraph={{
|
||||||
optional: {
|
optional: {
|
||||||
siteName: "Solar Network",
|
siteName: "Solar Network",
|
||||||
@ -63,7 +63,7 @@ const attachments = await fetchAttachmentMeta(data.body.attachments)
|
|||||||
twitter={{
|
twitter={{
|
||||||
card: 'summary_large_image',
|
card: 'summary_large_image',
|
||||||
title: data.body?.title ? data.body.title : `Post #${data.id}`,
|
title: data.body?.title ? data.body.title : `Post #${data.id}`,
|
||||||
description: data.body?.description,
|
description: data.body?.description ?? data.body?.content?.substring(0, 200),
|
||||||
creator: '@' + data.publisher.name,
|
creator: '@' + data.publisher.name,
|
||||||
image: data.body?.thumbnail
|
image: data.body?.thumbnail
|
||||||
? getAttachmentUrl(data.body.thumbnail)
|
? getAttachmentUrl(data.body.thumbnail)
|
||||||
|
Loading…
Reference in New Issue
Block a user