{{ 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 "intro" }} {{ if ne .Content "" }} {{ partial "snippets/content" (dict "content" .Content) }} {{ end }} {{ end }} {{ define "content" }} {{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}} {{- $pages := $pages.ByLastmod.Reverse -}} {{ if eq .Kind "term" }} {{- $pages = .Data.Pages.ByLastmod -}} {{ end }} {{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }} {{ end }} {{ define "sidebar" }} {{ end }}