🐛 Fix homepage structrued data unparsable

Fixes #113
This commit is contained in:
James Panther
2022-02-13 18:00:38 +11:00
parent a041f09f6f
commit a29efce7c0
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -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
+3 -3
View File
@@ -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 }}"
}
}
</script>
{{ else if .IsPage }}