{{ $page_class := "" }} {{ if .Params.bodyclass }} {{- $page_class = printf "block-page-%s" .Params.bodyclass }} {{ end }}
{{- partial (printf "blocks/templates/pages/%s.html" site.Params.pages.index.layout) (dict "pages" .Params.children "heading_level" 2 "options" (dict "summary" true "image" (eq site.Params.pages.index.layout "grid") ) ) }}