{{ define "banner" }} {{ $image := "" }} {{ if .Resources.GetMatch "banner*" }} {{ $image = .Resources.GetMatch "banner*" }} {{ end }} {{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }} {{ end }} {{ define "content" }} {{ if eq .Kind "taxonomy" }}
{{ range .Pages }} {{ .Page.Title }} {{ end }}
{{ else }} {{- $pages := .Data.Pages -}} {{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }} {{ end }} {{ end }}