diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 27b9b674..7a7edf58 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,7 +5,7 @@
- {{ $paginator := .Paginate ( where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} {{ range $paginator.Pages }}
{{ partial "card-article" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 556e24e1..10bf4474 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -8,7 +8,7 @@ {{ if eq $.Data.Plural "tags" }} {{ $name }} {{ else if eq $.Data.Plural "categories" }} - {{ if (index $transliterations $name) }}{{ index $transliterations $name }}{{ else }}{{ $name | title }}{{end}} + {{ with (index $transliterations $name) }}{{ . }}{{ else }}{{ $name | title }}{{end}} {{ end }} {{ end }}
diff --git a/layouts/author/single.html b/layouts/author/single.html index e4b64e68..2d9e0962 100644 --- a/layouts/author/single.html +++ b/layouts/author/single.html @@ -14,7 +14,7 @@ {{ .Content }}
{{ with .Params.email }} - {{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }} + {{ partial "icons/icon" (dict "vendor" "mdi" "name" "at") }} {{ end }}
diff --git a/layouts/begabte/single.html b/layouts/begabte/single.html index d81be7c8..58a09f61 100644 --- a/layouts/begabte/single.html +++ b/layouts/begabte/single.html @@ -6,7 +6,7 @@

Weitere Begabtenförderungsangebote

- {{ range partial "related" . }} + {{ range partial "data/related" . }} {{ partial "card-btn" . }} {{ end }}
diff --git a/layouts/ganztagsangebote/single.html b/layouts/ganztagsangebote/single.html index 1c38ffab..20d92ec4 100644 --- a/layouts/ganztagsangebote/single.html +++ b/layouts/ganztagsangebote/single.html @@ -22,7 +22,7 @@

Andere Arbeitsgemeinschaften

- {{ range partial "related" . }} + {{ range partial "data/related" . }}
{{ partial "ganztag" . }}
diff --git a/layouts/partials/related.html b/layouts/partials/data/related.html similarity index 100% rename from layouts/partials/related.html rename to layouts/partials/data/related.html diff --git a/layouts/wettbewerbe/single.html b/layouts/wettbewerbe/single.html index 99dd44af..1643fb31 100644 --- a/layouts/wettbewerbe/single.html +++ b/layouts/wettbewerbe/single.html @@ -6,7 +6,7 @@

Weitere Wettbewerbe

- {{ range partial "related" . }} + {{ range partial "data/related" . }}
{{ partial "card-category" . }}