🐛 Fix JSON-LD keywords delimiter

Fixes #74
pull/82/head
James Panther 2022-01-07 14:50:15 +11:00
parent 7606c925ae
commit 55677da695
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed ### Fixed
- `lead` shortcode not rendering Markdown formatted text ([#73](https://github.com/jpanther/congo/issues/73)) - `lead` shortcode not rendering Markdown formatted text ([#73](https://github.com/jpanther/congo/issues/73))
- JSON-LD keywords data not structured correctly ([#74](https://github.com/jpanther/congo/issues/74))
## [1.6.1] - 2021-12-31 ## [1.6.1] - 2021-12-31

View File

@ -33,8 +33,8 @@
{{ with .PublishDate }}"datePublished": "{{ .Format $iso8601 }}",{{ end }} {{ with .PublishDate }}"datePublished": "{{ .Format $iso8601 }}",{{ end }}
{{ with .Lastmod }}"dateModified": "{{ .Format $iso8601 }}",{{ end }} {{ with .Lastmod }}"dateModified": "{{ .Format $iso8601 }}",{{ end }}
"url" : "{{ .Permalink }}", "url" : "{{ .Permalink }}",
"wordCount": "{{ .WordCount }}", {{ with .Params.tags }}"keywords": {{ . }},{{ end }}
"keywords": [{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}] "wordCount": "{{ .WordCount }}"
} }
</script> </script>
{{ end }} {{ end }}