{{ range .Params.sections }} {{ if eq .type "hero" }} {{ partial "sections/hero.html" . }} {{ else if eq .type "final-cta" }} {{ partial "sections/final-cta.html" . }} {{ else if templates.Exists (printf "partials/sections/%s.html" .type) }} {{ partial "sections/wrapper.html" . }} {{ end }} {{ end }}