]> juplo.de Git - website/commitdiff
Partial `terms.html` gegen fehlende Taxonomien abgesichert
authorKai Moritz <kai@juplo.de>
Tue, 16 Dec 2025 19:18:21 +0000 (20:18 +0100)
committerKai Moritz <kai@juplo.de>
Thu, 18 Dec 2025 23:34:10 +0000 (00:34 +0100)
layouts/_partials/terms.html

index 550ed41a83c243162a4f67c556da34ca0352c49c..a49006646f710b4ffac7dca6cdcecfdbb3fbfd35 100644 (file)
@@ -1,6 +1,6 @@
 {{- $page := .Page }}
 {{- range .Page.Site.Taxonomies }}
-{{- $taxonomy := . }}
+{{- with $taxonomy := . }}
 {{- $terms := $page.GetTerms .Page.Data.Plural }}
 {{- if gt $terms.Len 0 }}
 <h3><a href="{{ .Page.RelPermalink }}">{{ .Page.LinkTitle }}</a></h3>
@@ -11,3 +11,4 @@
 </ul>
 {{- end }}
 {{- end }}
+{{- end }}