{{ define "main" }} {{ $pages := where .Pages "Type" "ne" "page" }} {{ $paginator := .Paginate $pages (index .Site.Params "paginate" | default 7) }} {{/* .Data.Plural is the taxonomy’s plural name in URLs: tags, categories, author, series */}} {{ $plural := .Data.Plural }} {{ $termsURL := printf "/%s/" $plural | relLangURL }} {{ $icon := "fa-list" }} {{ if eq $plural "author" }} {{ $icon = "fa-users" }} {{ else if eq $plural "tags" }} {{ $icon = "fa-tag" }} {{ else if eq $plural "categories" }} {{ $icon = "fa-list" }} {{ else if eq $plural "series" }} {{ $icon = "fa-list-alt" }} {{ end }}

{{ .Title }}


{{ range $paginator.Pages }}
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html")) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }} {{ partial (print "content-type/" .Type ".html") (dict "ctx" . "template_type" "multiple") }} {{ else }} {{ partial "content-type/article.html" (dict "ctx" . "template_type" "multiple") }} {{ end }}
{{ end }} {{ partial "paginator.html" . }} {{ end }}