{{ 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" }} {{ $pages := .Data.Pages }} {{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }} {{ end }}