Skip to content

Commit 313827f

Browse files
committed
feat: add headline property to JSON-LD metadata for article page
1 parent a0e7136 commit 313827f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/app/[username]/[articleHandle]

src/app/[username]/[articleHandle]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const Page: NextPage<ArticlePageProps> = async ({ params }) => {
8282
"@context": "https://schema.org",
8383
"@type": "Article",
8484
name: article?.title,
85+
headline: article?.title,
8586
image: article?.cover_image ? getFileUrl(article?.cover_image) : undefined,
8687
description: article?.excerpt ?? removeMarkdownSyntax(article?.body ?? ""),
8788
url: `https://www.techdiary.dev/@${article?.user?.username}/${article?.handle}`,

0 commit comments

Comments
 (0)