Skip to content

Commit

Permalink
🐛 Fix homepage structrued data unparsable
Browse files Browse the repository at this point in the history
Fixes #113
  • Loading branch information
jpanther committed Feb 13, 2022
1 parent a041f09 commit a29efce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/schema.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a29efce

Please sign in to comment.