minor reformatting
This commit is contained in:
parent
2de24d3049
commit
9afce46929
1 changed files with 7 additions and 7 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue