{{ $show_descriptions := .show_descriptions }} {{ $show_images := .show_images }}
{{ range .pages }} {{- $page := partial "GetPageByUrl" .page -}} {{- if .slug -}} {{- $page = partial "GetPageByUrl" .slug -}} {{- end -}} {{ with $page }}

{{- partial "PrepareHTML" .Title -}}

{{ if and $show_descriptions .Params.description_short }} {{ if site.Params.pages.list.truncate_description }}

{{ partial "GetTruncateContent" ( dict "text" .Params.description_short "length" site.Params.pages.list.truncate_description ) }}

{{ else }}

{{ partial "PrepareHTML" .Params.description_short }}

{{ end }} {{ end }}

{{- i18n "commons.more" -}}

{{ if $show_images }} {{- partial "pages/page-media.html" . -}} {{ end }}
{{- end -}} {{ end }}