ld_schema.html (1026B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<script type="application/ld+json">
 {
   "@context": "https://schema.org",
   {{ if eq .Type "posts" }}
   "@type": "BlogPosting",
   "headline": "{{ .Params.title }}",
   "datePublished": "{{ .Params.date }}",
   "description": "{{ .Params.description }}",
   {{- else if eq .Type "about" -}}
   "@type": "AboutPage",
   {{- else -}}
   "@type": "WebPage",
   {{- end }}
   "author": {
     "@type": "Person",
     "name": "lou woell",
     "alternateName": "lou.",
     "url": "https://repetitions.de"
   },
   "dateModified": "{{ .Lastmod }}",
   "image": {
     "@type": "ImageObject",
     "url": {{ with (.Params.cover | .Resources.GetMatch) -}}
     "{{ .RelPermalink  | absURL }}"
     {{- else  -}}
     {{- if .Site.Params.favicon -}}
     "{{ $.Site.Params.favicon | absURL }}"
     {{- else -}}
     "{{ printf "img/theme-colors/%s.png" .Site.Params.ThemeColor | absURL }}"
     {{- end -}}
     {{- end }}
   },
   "mainEntityOfPage": {
     "@type": "WebPage",
     "@id": "{{ .Permalink }}"
   }

 }
</script>