|
1 | 1 | {{ if .IsHome -}}
|
2 | 2 | <script type="application/ld+json">
|
3 |
| -{ |
4 |
| - "@context": "http://schema.org", |
5 |
| - "@type": "WebSite", |
6 |
| - "name": "{{ .Site.Title }}", |
7 |
| - "url": {{ .Site.BaseURL }}, |
8 |
| - "description": "{{ $.Site.Params.description }}", |
9 |
| - "thumbnailUrl": {{ .Site.Params.Logo | absURL }}, |
10 |
| - "license": "{{ .Site.Params.Copyright }}" |
11 |
| -} |
| 3 | + { |
| 4 | + "@context": "http://schema.org", |
| 5 | + "@type": "WebSite", |
| 6 | + "name": "{{ .Site.Title }}", |
| 7 | + "url": {{ .Site.BaseURL }}, |
| 8 | + "description": "{{ $.Site.Params.description }}", |
| 9 | + "thumbnailUrl": {{ .Site.Params.Logo | absURL }}, |
| 10 | + "license": "{{ .Site.Params.Copyright }}" |
| 11 | + } |
12 | 12 | </script>
|
13 | 13 | {{ else if .IsPage -}}
|
14 | 14 | {{ $author := or (.Params.author) (.Site.Author.name) }}
|
15 | 15 | {{ $organization := .Site.Title }}
|
16 | 16 | <script type="application/ld+json">
|
17 |
| -{ |
18 |
| - "@context": "http://schema.org", |
19 |
| - "@type": "BlogPosting", |
20 |
| - "articleSection": "{{ .Section }}", |
21 |
| - "name": "{{ .Title | safeJS }}", |
22 |
| - "headline": "{{ .Title | safeJS }}", |
23 |
| - "alternativeHeadline": "{{ .Params.lead }}", |
24 |
| - "description": "{{ if .Description }}{{ .Description | safeJS }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}", |
25 |
| - "inLanguage": {{ .Site.LanguageCode | default "en-us" }}, |
26 |
| - "isFamilyFriendly": "true", |
27 |
| - "mainEntityOfPage": { |
28 |
| - "@type": "WebPage", |
29 |
| - "@id": {{ .Permalink }} |
30 |
| - }, |
31 |
| - "author" : { |
32 |
| - "@type": "Person", |
33 |
| - "name": "{{ $author }}" |
34 |
| - }, |
35 |
| - "creator" : { |
36 |
| - "@type": "Person", |
37 |
| - "name": "{{ $author }}" |
38 |
| - }, |
39 |
| - "accountablePerson" : { |
40 |
| - "@type": "Person", |
41 |
| - "name": "{{ $author }}" |
42 |
| - }, |
43 |
| - "copyrightHolder" : "{{ $organization }}", |
44 |
| - "copyrightYear" : "{{ .Date.Format "2006" }}", |
45 |
| - "dateCreated": "{{ .Date.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
46 |
| - "datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
47 |
| - "dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
48 |
| - "publisher":{ |
49 |
| - "@type":"Organization", |
50 |
| - "name": {{ $organization }}, |
51 |
| - "url": {{ .Site.BaseURL }}, |
52 |
| - "logo": { |
53 |
| - "@type": "ImageObject", |
54 |
| - "url": {{ .Site.Params.logo | absURL }}, |
55 |
| - "width":"32", |
56 |
| - "height":"32" |
57 |
| - } |
58 |
| - }, |
59 |
| -{{/* |
60 |
| - "image": {{ if .Params.images }}[{{ range $i, $e := .Params.images }}{{ if $i }}, {{ end }}{{ $e | absURL }}{{ end }}]{{ else}}{{.Site.Params.logo | absURL }}{{ end }}, |
61 |
| -*/}} |
62 |
| - "image": {{ (print .Permalink .Params.image) }}, |
63 |
| - "url" : {{ .Permalink }}, |
64 |
| - "wordCount" : "{{ .WordCount }}", |
65 |
| - "genre" : [ {{ range $index, $tag := .Params.tags }}{{ if $index }}, {{ end }}"{{ $tag }}" {{ end }}], |
66 |
| - "keywords" : [ {{ range $index, $tag := .Params.projects }}{{ if $index }}, {{ end }}"{{ $tag }}" {{ end }}] |
67 |
| -} |
| 17 | + { |
| 18 | + "@context": "http://schema.org", |
| 19 | + "@type": "BlogPosting", |
| 20 | + "articleSection": "{{ .Section }}", |
| 21 | + "name": "{{ .Title | safeJS }}", |
| 22 | + "headline": "{{ .Title | safeJS }}", |
| 23 | + "alternativeHeadline": "{{ .Params.lead }}", |
| 24 | + "description": "{{ if .Description }}{{ .Description | safeJS }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }}", |
| 25 | + "inLanguage": {{ .Site.LanguageCode | default "en-us" }}, |
| 26 | + "isFamilyFriendly": "true", |
| 27 | + "mainEntityOfPage": { |
| 28 | + "@type": "WebPage", |
| 29 | + "@id": {{ .Permalink }} |
| 30 | + }, |
| 31 | + "author" : { |
| 32 | + "@type": "Person", |
| 33 | + "name": "{{ $author }}" |
| 34 | + }, |
| 35 | + "creator" : { |
| 36 | + "@type": "Person", |
| 37 | + "name": "{{ $author }}" |
| 38 | + }, |
| 39 | + "accountablePerson" : { |
| 40 | + "@type": "Person", |
| 41 | + "name": "{{ $author }}" |
| 42 | + }, |
| 43 | + "copyrightHolder" : "{{ $organization }}", |
| 44 | + "copyrightYear" : "{{ .Date.Format "2006" }}", |
| 45 | + "dateCreated": "{{ .Date.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
| 46 | + "datePublished": "{{ .PublishDate.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
| 47 | + "dateModified": "{{ .Lastmod.Format "2006-01-02T15:04:05.00Z" | safeHTML }}", |
| 48 | + "publisher":{ |
| 49 | + "@type":"Organization", |
| 50 | + "name": {{ $organization }}, |
| 51 | + "url": {{ .Site.BaseURL }}, |
| 52 | + "logo": { |
| 53 | + "@type": "ImageObject", |
| 54 | + "url": {{ .Site.Params.logo | absURL }}, |
| 55 | + "width":"32", |
| 56 | + "height":"32" |
| 57 | + } |
| 58 | + }, |
| 59 | + {{/* |
| 60 | + "image": {{ if .Params.images }}[{{ range $i, $e := .Params.images }}{{ if $i }}, {{ end }}{{ $e | absURL }}{{ end }}]{{ else}}{{.Site.Params.logo | absURL }}{{ end }}, |
| 61 | + */}} |
| 62 | + "image": {{ (print .Permalink .Params.image) }}, |
| 63 | + "url" : {{ .Permalink }}, |
| 64 | + "wordCount" : "{{ .WordCount }}", |
| 65 | + "genre" : [ {{ range $index, $tag := .Params.tags }}{{ if $index }}, {{ end }}"{{ $tag }}" {{ end }}], |
| 66 | + "keywords" : [ {{ range $index, $tag := .Params.projects }}{{ if $index }}, {{ end }}"{{ $tag }}" {{ end }}] |
| 67 | + } |
68 | 68 | </script>
|
69 | 69 | {{ end }}
|
70 | 70 |
|
|
78 | 78 | {{- end }}
|
79 | 79 | <meta property="og:url" content="{{ .Permalink }}" />
|
80 | 80 | <meta property="og:image" content="{{ .Site.Params.Logo | absURL }}" />
|
81 |
| - |
| 81 | +<!-- Fedi --> |
| 82 | +<meta name="fediverse:creator" content="@darktable@photog.social"> |
0 commit comments