hugo-theme-terminal

My Fork of the Terminal Hugo Theme
git clone https://git.repetitions.de/hugo-theme-terminal

ld_schema.html (1026B)


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