{{ $options := .options }} {{ $heading_level := .heading_level | default 3 }} {{ $heading_tag := partial "GetHeadingTag" (dict "level" $heading_level "attributes" "class='page-title'" )}}
{{ range .pages }} {{ $page := site.GetPage .file }} {{ with $page }}
{{ $heading_tag.open }} {{- partial "PrepareHTML" .Title -}} {{ $heading_tag.close }} {{ if and $options.summary .Params.summary }} {{ partial "GetRichSummary" ( dict "summary" .Params.summary "kind" "pages" )}} {{ end }}
{{- if and $options.image .Params.image -}}
{{- partial "commons/image.html" (dict "image" .Params.image "sizes" site.Params.image_sizes.blocks.pages.large ) -}}
{{- end -}}
{{- end -}} {{ end }}