Skip to content

Commit 9dbf6ff

Browse files
committed
Add fedi reference and remove ananlytics, since that mamoto server isn't up anymore.
1 parent 8842196 commit 9dbf6ff

File tree

2 files changed

+63
-62
lines changed

2 files changed

+63
-62
lines changed

themes/darktable/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@
3636
</body>
3737
</html>
3838

39-
{{ partial "analytics.html" . }}
39+
<!-- {{ partial "analytics.html" . }} -->
Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
11
{{ if .IsHome -}}
22
<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+
}
1212
</script>
1313
{{ else if .IsPage -}}
1414
{{ $author := or (.Params.author) (.Site.Author.name) }}
1515
{{ $organization := .Site.Title }}
1616
<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+
}
6868
</script>
6969
{{ end }}
7070

@@ -78,4 +78,5 @@
7878
{{- end }}
7979
<meta property="og:url" content="{{ .Permalink }}" />
8080
<meta property="og:image" content="{{ .Site.Params.Logo | absURL }}" />
81-
81+
<!-- Fedi -->
82+
<meta name="fediverse:creator" content="@darktable@photog.social">

0 commit comments

Comments
 (0)