{{ $options := .options }} {{ $heading_level := .heading_level | default 3 }} {{ $heading_tag := partial "GetHeadingTag" (dict "level" $heading_level "attributes" "class='page-title'" )}} {{ with .pages }}
{{ range . }} {{/* Check if . is a map or page url, necessary when pages/list is called outside block context */}} {{- $path := false -}} {{ if reflect.IsMap . }} {{ $path = .path }} {{ else }} {{ $path = . }} {{ end }} {{ $page := site.GetPage $path }} {{ with $page }}
{{ $heading_tag.open }} {{- partial "PrepareHTML" .Title -}} {{ $heading_tag.close }} {{- partial "pages/list/components/hook-after-title.html" . -}} {{ if and $options.summary .Params.summary }} {{ partial "GetRichSummary" ( dict "summary" .Params.summary "kind" "pages" )}} {{ end }} {{/* TODO: set right options when admin is ready */}} {{ if site.Params.pages.index.options.categories }} {{ partial "commons/categories" ( dict "context" . "kind" "page" )}} {{ end }} {{ if $options.image }} {{- partial "pages/page-media.html" . -}} {{ end }}
{{- end -}} {{ end }}
{{ end }}