{{ define "main" }} {{ if eq .File.Path "programs/_index.html" }} {{ partial "programs/hero.html" . }} {{ partial "programs/list.html" . }} {{ else }} {{ partial "programs/hero-single.html" . }} {{ partial "programs/single.html" . }} {{ end }} {{ end }}