{{ define "main" }}

{{ .Type | singularize | humanize }}

{{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}

{{ .Title }}

{{ with .Params.description }}

{{ . }}

{{ end }}
{{ $image := partialCached "helper/image" (dict "Context" . "Type" "taxonomy") .RelPermalink }} {{ if $image.exists }}
{{ if $image.resource }} {{- $thumbnail := $image.resource.Fill "120x120" -}} {{ else }} {{ end }}
{{ end }}
{{ $v2 := where .Pages "Params.hidden" "!=" true }} {{ $pag := .Paginate (.Pages) }} {{ range $pag.Pages }} {{ partial "article-list/compact" . }} {{ end }}
{{- partial "pagination.html" . -}} {{ partialCached "footer/footer" . }} {{ end }}