{{ if .Params.img -}}
{{- else if .Params.teaser -}}
{{ .Params.teaser }}
{{- else if .Site.Params.defaultImage -}}
{{- else if .Params.Summary -}}
{{ .Params.Summary }}
{{- end }}
{{- $site := .Site -}}
{{ with .Params.Topics -}}
{{i18n "topics"}}
{{ range . -}}
{{- $page := $site.GetPage (printf "/topics/%s" .) -}}
{{ $page.Title }}
{{- end }}
{{- end }}
{{ if not .Site.Params.hideParentArticles -}}
{{- $related := where .Site.RegularPages "Params.pageid" "in" .Params.parents -}}
{{- with $related -}}
{{ i18n "parent-articles" }}
{{- partial "list-item" $related -}}
{{- end -}}
{{- end }}
{{ if not .Site.Params.hideChildArticles -}}
{{- $related := .Site.RegularPages.RelatedTo (keyVals "parents" .Params.pageid) -}}
{{- with $related -}}
{{ i18n "child-articles" }}
{{- partial "list-item" $related -}}
{{- end -}}
{{- end }}
{{ if not .Site.Params.hideRelatedArticles -}}
{{- $related := .Site.RegularPages.RelatedIndices . "topics" -}}
{{- with $related -}}
{{ i18n "related-articles" }}
{{- partial "list-item" $related -}}
{{- end -}}
{{- end }}
{{ if not .Site.Params.hideSectionArticles -}}
{{- $section := or .Section "posts" -}}
{{- $related := first 20 (where .Site.RegularPages "Section" $section) -}}
{{- with $related -}}
{{ or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") }}