Skip to content

Commit bfa2114

Browse files
committed
Fixes
1 parent 4699932 commit bfa2114

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

themes/pinetheme/layouts/partials/jsonld/blog.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"@type" "BlogPosting"
1111
"headline" .Title
1212
"url" .Permalink
13+
"image" $img
14+
"wordcount" .WordCount
1315
"datePublished" .Date
1416
"description" $desc
1517
"inLanguage" .Lang

themes/pinetheme/layouts/partials/jsonld/contests.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{{- $desc := (or .Description .Summary site.Params.description) | plainify | htmlUnescape }}
2+
3+
{{- $img := "" -}}
4+
{{- with .Params.cover.image }}{{ $img = . }}{{ end -}}
5+
{{- $fallback := "" -}}
6+
{{- if not $img }}{{ $img = $fallback }}{{ end -}}
7+
28
{{- $data := dict
39
"@context" "https://schema.org"
4-
"@type" "Event"
5-
"name" .Title
10+
"@type" "BlogPosting"
11+
"headline" .Title
12+
"url" .Permalink
13+
"image" $img
14+
"wordcount" .WordCount
15+
"datePublished" .Date
616
"description" $desc
7-
"url" .Permalink
17+
"inLanguage" .Lang
818
-}}
919
<script type="application/ld+json">
1020
{{ $data | jsonify | safeJS }}

0 commit comments

Comments
 (0)