commit a84f11f8c1670d943581ff23613485777d4f43ce
parent 5afb90c1b5df9544adfe84e1f3627a2ae59fe1ad
Author: Lou Woell <lou.woell@posteo.de>
Date: Sat, 13 Dec 2025 18:29:49 +0100
partials ld_schema: add image
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/layouts/_partials/ld_schema.html b/layouts/_partials/ld_schema.html
@@ -13,12 +13,18 @@
"alternateName": "lou.",
"url": "https://repetitions.de"
},
- {{ with .Params.cover }}
"image": {
"@type": "ImageObject",
- "url": "{{ . | absURL }}"
+ "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 }}
},
- {{ end }}
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ .Permalink }}"