{{ define "body-class" }}template-archive{{ end }} {{ define "main" }} {{ $categories := ($.Site.GetPage "taxonomyTerm" "categories").Pages }} {{ if $categories }}

Categories

{{ range $categories }} {{ partial "article-list/tile" (dict "context" . "size" "250x150") }} {{ end }}
{{ 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 " " "-") }}

{{ .Key }}

{{ range .Pages }} {{ partial "article-list/compact" . }} {{ end }}
{{ end }} {{ partialCached "footer/footer" . }} {{ end }}