diff --git a/layouts/programs/list.html b/layouts/programs/list.html index db2c2b6b0d703579d20dd42c49efdc100a215010..33406b15b666bdd13c88d3ec708f91cfe16c5185 100644 --- a/layouts/programs/list.html +++ b/layouts/programs/list.html @@ -1,9 +1,9 @@ {{ define "main" }} - {{ if .Params.diplomas }} - {{ partial "programs/hero-single.html" . }} - {{ partial "programs/single.html" . }} - {{ else }} + {{ 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 }}