From a29efce7c066c50cb792a96955dc5a7d0a4f63f2 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 13 Feb 2022 18:00:38 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20homepage=20structrued=20da?= =?UTF-8?q?ta=20unparsable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #113 --- CHANGELOG.md | 1 + layouts/partials/schema.html | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fc760eb..72d512f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - Updated date is displayed even when it is the same as published date +- Structured data on homepage unparsable by Google ([#113](https://github.com/jpanther/congo/issues/113)) ## [2.0.4] - 2022-02-09 diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html index f69bdd05..77ecfa3c 100644 --- a/layouts/partials/schema.html +++ b/layouts/partials/schema.html @@ -8,11 +8,11 @@ {{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }} {{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }} "url": "{{ (site.GetPage "/").Permalink | safeURL }}", + {{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }} "publisher" : { "@type": "Person", - "name": "{{ .Site.Author.name | safeJS }}", - }, - {{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }} + "name": "{{ .Site.Author.name | safeJS }}" + } } {{ else if .IsPage }}