{{ define "body-class" }}template-archives{{ end }} {{ define "main" }} {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ if $categories }}
{{ end }} {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} {{ $filtered := ($pages | intersect $notHidden) }} {{ range $filtered.GroupByDate "2006" }} {{ $id := lower (replace .Key " " "-") }}