From: Kai Moritz Date: Tue, 16 Dec 2025 19:18:21 +0000 (+0100) Subject: Partial `terms.html` gegen fehlende Taxonomien abgesichert X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=a9ec575f44f0ac9827e8b70ccc70b3b36df3dea6;p=website Partial `terms.html` gegen fehlende Taxonomien abgesichert --- diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html index 550ed41a..a4900664 100644 --- a/layouts/_partials/terms.html +++ b/layouts/_partials/terms.html @@ -1,6 +1,6 @@ {{- $page := .Page }} {{- range .Page.Site.Taxonomies }} -{{- $taxonomy := . }} +{{- with $taxonomy := . }} {{- $terms := $page.GetTerms .Page.Data.Plural }} {{- if gt $terms.Len 0 }}

{{ .Page.LinkTitle }}

@@ -11,3 +11,4 @@ {{- end }} {{- end }} +{{- end }}