{{ define "main" }} {{ partial "pages/hero.html" . }}
{{- $category := site.GetPage (printf "/categories%s" .Params.category) -}} {{- if .Params.blocks }} {{ $need_aside := false }} {{ range .Params.blocks }} {{ if .title }} {{ $need_aside = true }} {{ end }} {{ end }} {{ partial "toc/container.html" (dict "category" $category "toc" "pages/toc.html" "context" . ) }} {{ partial "hooks/after-page-hero.html" . }} {{ partial "blocks/list.html" . }} {{ else }}
{{ range .Params.children }} {{- $page := partial "GetPageByUrl" . -}} {{ with $page }} {{- end -}} {{ end }}
{{ end }}
{{ end }}