Skip to content

Commit 9ac4988

Browse files
committed
fix: update JSON-LD structure for articles with correct type and properties
1 parent a068e43 commit 9ac4988

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/pages/activities/[pagePath].astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,13 @@ const ogImageUrl = ogImage ? resolveUrl(ogImage) : undefined;
7474
7575
const jsonLd = {
7676
'@context': 'https://schema.org',
77-
'@type': 'Event',
78-
name: title,
77+
'@type': 'Article',
78+
headline: title,
7979
description: summary || `${title} - ${AUTHOR}の活動`,
80-
organizer: { '@type': 'Person', name: AUTHOR },
80+
author: { '@type': 'Person', name: AUTHOR },
8181
url: canonicalUrl,
82-
startDate: event || undefined,
82+
datePublished: publish || undefined,
83+
...(shouldShowUpdatedDate && { dateModified: updated }),
8384
...(ogImageUrl && { image: { '@type': 'ImageObject', url: ogImageUrl } }),
8485
};
8586
---

0 commit comments

Comments
 (0)