🐛 Remove array from LD+JSON data

Fixes: #596
pull/648/head
James Panther 2023-09-10 10:20:10 +10:00
parent c98a7f8efb
commit 743104db52
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed ### Fixed
- TypeError is output to console when viewing leaf pages ([#596](https://github.com/jpanther/congo/pull/596))
- URL to Congo project in footer used deprecated git.io short link ([#605](https://github.com/jpanther/congo/pull/605)) - URL to Congo project in footer used deprecated git.io short link ([#605](https://github.com/jpanther/congo/pull/605))
- Various typos in the docs and example site ([#608](https://github.com/jpanther/congo/pull/608), [#609](https://github.com/jpanther/congo/pull/609), [#613](https://github.com/jpanther/congo/pull/613)) - Various typos in the docs and example site ([#608](https://github.com/jpanther/congo/pull/608), [#609](https://github.com/jpanther/congo/pull/609), [#613](https://github.com/jpanther/congo/pull/613))
- Incorrect `render` value is used in the 'external' archetype ([#630](https://github.com/jpanther/congo/pull/630)) - Incorrect `render` value is used in the 'external' archetype ([#630](https://github.com/jpanther/congo/pull/630))

View File

@ -18,7 +18,7 @@
{{ else if .IsPage }} {{ else if .IsPage }}
{{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}}
<script type="application/ld+json"> <script type="application/ld+json">
[{ {
"@context": "https://schema.org", "@context": "https://schema.org",
"@type": "Article", "@type": "Article",
"articleSection": "{{ (site.GetPage .Section).Title | safeJS }}", "articleSection": "{{ (site.GetPage .Section).Title | safeJS }}",
@ -44,6 +44,6 @@
{{ end }} {{ end }}
"mainEntityOfPage": "true", "mainEntityOfPage": "true",
"wordCount": "{{ .WordCount }}" "wordCount": "{{ .WordCount }}"
}] }
</script> </script>
{{ end }} {{ end }}