{{ define "main" }} {{ .Scratch.Set "scope" "list" }} {{ if .Site.Params.taxonomy.showHero | default false }} {{ $heroStyle := print "partials/hero/" .Site.Params.taxonomy.heroStyle ".html" }} {{ if templates.Exists $heroStyle }} {{ partial $heroStyle . }} {{ else }} {{ partial "partials/hero/basic.html" . }} {{ end }} {{- end -}} {{ $toc := and (.Params.showTableOfContents | default (.Site.Params.taxonomy.showTableOfContents | default false)) (in .TableOfContents "