🐛 Fix homepage structrued data unparsable

Fixes #113
pull/144/head
James Panther 2022-02-13 18:00:38 +11:00
parent a041f09f6f
commit a29efce7c0
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 4 additions and 3 deletions

View File

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed ### Fixed
- Updated date is displayed even when it is the same as published date - 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 ## [2.0.4] - 2022-02-09

View File

@ -8,11 +8,11 @@
{{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }} {{ with .Site.Params.description }}"description": "{{ . | safeJS }}",{{ end }}
{{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }} {{ with .Site.LanguageCode }}"inLanguage": "{{ . }}",{{ end }}
"url": "{{ (site.GetPage "/").Permalink | safeURL }}", "url": "{{ (site.GetPage "/").Permalink | safeURL }}",
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
"publisher" : { "publisher" : {
"@type": "Person", "@type": "Person",
"name": "{{ .Site.Author.name | safeJS }}", "name": "{{ .Site.Author.name | safeJS }}"
}, }
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
} }
</script> </script>
{{ else if .IsPage }} {{ else if .IsPage }}