{{ define "main" }}

{{ if eq .Data.Singular "tag" }} {{ partial "icon.html" "tag" }} {{ else if eq .Data.Singular "author" }} {{ partial "icon.html" "user-circle" }} {{ else if eq .Data.Singular "series" }} {{ partial "icon.html" "files" }} {{ else }} {{ partial "icon.html" "filter" }} {{ end }} {{ .Title }} {{ if eq .Kind "term" }} {{ with .OutputFormats.Get "rss" }} {{ partial "icon.html" "rss-feed" }} {{ end }} {{ end }}

{{ if eq .Kind "taxonomy" }} {{ else }} {{ $items := .Paginator.Pages }} {{ if eq .Data.Singular "series" }} {{ $items = .Paginator.Pages.Reverse }} {{ end }}
{{ if gt .Paginator.TotalPages 1 }} {{ end }} {{ end }} {{ end }}