{{ define "main" }} {{- $is_organigram_present := false -}} {{ range .Params.blocks }} {{- if eq .template "organization_chart" -}} {{- $is_organigram_present = true -}} {{ end }} {{ end }} {{ partial "persons/hero.html" . }} <div class="document-content"> <div class="container"> {{ partial "persons/chapo.html" (dict "context" . ) }} {{- if not $is_organigram_present -}} {{ partial "persons/taxonomies.html" . }} {{ partial "persons/list.html" . }} {{- end -}} </div> {{ partial "blocks/list.html" . }} </div> {{ end }}