File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
themes/pinetheme/layouts/partials/jsonld Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1010 "@type" "BlogPosting"
1111 "headline" .Title
1212 "url" .Permalink
13+ "image" $img
14+ "wordcount" .WordCount
1315 "datePublished" .Date
1416 "description" $desc
1517 "inLanguage" .Lang
Original file line number Diff line number Diff line change 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 } }
You can’t perform that action at this time.
0 commit comments