{{ define "body_class" }} home-template {{ end }} {{ define "main" }} {{ .Scratch.Set "background" .Params.featured_image }} {{- partial "header-background.html" . -}} {{- partial "site-nav.html" . -}} {{ if $.Site.Params.logo }} {{ else }} {{ $.Site.Title }} {{ end }} {{ $.Site.Params.description }} {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{ range $index, $element := $pages }} {{- partial "post-card.html" (dict "context" . "index" $index "home" $.IsHome) -}} {{ end }} {{ end }}