{{ define "main" }} {{ partial "pages/hero.html" . }} {{ partial "hooks/after-page-hero.html" . }}
{{- $category := site.GetPage (printf "/categories%s" .Params.category) -}} {{ partial "toc/container.html" (dict "category" $category "toc" "pages/toc.html" "context" . ) }} {{ partial "pages/summary.html" (dict "context" . "block_wrapped" true ) }} {{ if .Params.contents }} {{ partial "contents/list.html" . }} {{ else }} {{ $page_class := "" }} {{ if .Params.bodyclass }} {{- $page_class = printf "block-page-%s" .Params.bodyclass }} {{ end }}
{{- partial "blocks/templates/pages/grid.html" (dict "pages" .Params.children "show_images" true "show_descriptions" true ) }}
{{ end }}
{{ end }}