{{ 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 "Type" "in" site.Params.searchSections }} {{ range $pages.GroupByDate "2006" }}

{{ .Key }}

{{ range .Pages.GroupByDate "January" }}

{{ .Key }}:

{{ range .Pages }}
{{ .Date.Format "02.01.2006" }} {{ .Title }}
{{ end }} {{ end }} {{ end }}
{{ end }}