minor reformatting

This commit is contained in:
Helmut Merz 2021-12-14 15:18:17 +01:00
parent 2de24d3049
commit 9afce46929

View file

@ -50,23 +50,23 @@
{{- end }}
{{ if not .Site.Params.hideRelatedArticles -}}
{{- $related := .Site.RegularPages.RelatedIndices . "topics" -}}
{{- $related := .Site.RegularPages.RelatedIndices . "topics" -}}
{{- partial "card-related"
(dict "related" $related "header" (i18n "related-articles") "id" "related") -}}
{{- end }}
{{ if not .Site.Params.hideSiblingArticles -}}
{{- $related := .Site.RegularPages.RelatedIndices . "parents" -}}
{{- $related := .Site.RegularPages.RelatedIndices . "parents" -}}
{{- partial "card-related"
(dict "related" $related "header" (i18n "sibling-articles") "id" "siblings") -}}
{{- end }}
{{ if not .Site.Params.hideSectionArticles -}}
{{- $section := or .Section "posts" -}}
{{- $header := or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") -}}
{{- $related := first 20 (where .Site.RegularPages "Section" $section) -}}
{{- partial "card-related"
(dict "related" $related "header" $header "id" "articles-in-section") -}}
{{- $section := or .Section "posts" -}}
{{- $header := or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") -}}
{{- $related := first 20 (where .Site.RegularPages "Section" $section) -}}
{{- partial "card-related"
(dict "related" $related "header" $header "id" "articles-in-section") -}}
{{- end }}
</div>