{{ define "main" }} {{ partial "hero.html" . }} {{ range $index, $element := where .Pages "Type" "in" .Site.Params.mainSections }} {{ partial "open_section.html" . }} {{ range first .Params.index_show .Pages.ByPublishDate.Reverse }} {{ partial "post.html" . }} {{ end }}
{{ end }} {{ end }}