Skip to content

Commit 39572ed

Browse files
committed
Fix description
1 parent cff2583 commit 39572ed

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

apps/page/components/seo-tags.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,19 @@ const SeoTags = ({
4848
? `${title} | ${page?.title}`
4949
: `${page?.title} | ${PageTypeToLabel[page?.type]}`
5050
}
51-
description={description ?? page?.description ?? ""}
51+
description={
52+
truncatedDescription ??
53+
page?.description ??
54+
PageTypeToLabel[page?.type]
55+
}
5256
canonical={url || pageUrl}
5357
openGraph={{
5458
url: url || pageUrl,
5559
title: title ?? page?.title,
56-
description: truncatedDescription ?? page?.description ?? "",
60+
description:
61+
truncatedDescription ??
62+
page?.description ??
63+
PageTypeToLabel[page?.type],
5764
images: [
5865
{
5966
url: ogImageUrl,

0 commit comments

Comments
 (0)