From a9dce097f6a076f243869a495d9ab6d9ddf6ecd2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 16 Feb 2022 15:34:06 +0100 Subject: fix: make schema.org markup valid (#4) Squashed commit of the following: commit 49c1b3b1556a0eb91c429a961fedd2bded8ffd47 Author: Armand Philippot Date: Wed Feb 16 15:17:52 2022 +0100 chore: add headline field to blogPosting schema commit 42214c6f032cc899ec252a9387be35dcad738546 Author: Armand Philippot Date: Wed Feb 16 15:09:11 2022 +0100 chore: update the searchAction markup and add query-input Google was complaining about "query-input" which is not in Schema.org representation. So I added it. commit 5f29226d937cbdcd262df2793f1588435d850f02 Author: Armand Philippot Date: Wed Feb 16 14:32:14 2022 +0100 chore: remove breadcrumb from homepage The breadcrumb is not displayed on the homepage, so the breadcrumb field should not appear inside Schema markup. --- src/pages/thematique/[slug].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pages/thematique') diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx index d737ea7..a8cb478 100644 --- a/src/pages/thematique/[slug].tsx +++ b/src/pages/thematique/[slug].tsx @@ -78,7 +78,7 @@ const Thematic: NextPageWithLayout = ({ const updateDate = new Date(thematic.dates.update); const articleSchema: Article = { - '@id': `${settings.url}/thematic`, + '@id': `${settings.url}/#thematic`, '@type': 'Article', name: thematic.title, description: thematic.intro, @@ -89,6 +89,7 @@ const Thematic: NextPageWithLayout = ({ dateModified: updateDate.toISOString(), datePublished: publicationDate.toISOString(), editor: { '@id': `${settings.url}/#branding` }, + headline: thematic.title, inLanguage: settings.locales.defaultLocale, isPartOf: { '@id': `${settings.url}/blog` }, license: 'https://creativecommons.org/licenses/by-sa/4.0/deed.fr', -- cgit v1.2.3