{{ define "main" }} {{- $is_block_persons_present := false -}} {{ range .Params.contents }} {{- if eq .template "persons" -}} {{- $is_block_persons_present = true -}} {{ end }} {{ end }} {{ partial "persons/hero.html" . }}