{{ define "main" }} {{- if eq .Kind "taxonomy" }} {{/* ── Taxonomy overview: /categories/ or /tags/ ── */}}
Archive

The {{ .Title | lower }}

{{ len .Pages }} {{ .Title | lower | singularize }}{{ if ne (len .Pages) 1 }}s{{ end }} across the archive. Return to home →

{{- range $i, $term := .Pages }} {{- $firstPost := index $term.Pages 0 }} {{- $img := "" }} {{- if $firstPost }}{{- $img = $firstPost.Resources.GetMatch "*.png" }}{{- end }}
{{- if $img }} {{- $w := $img.Resize "600x900 webp" }} {{ $term.Title }} {{- end }} {{ len $term.Pages }} plates

{{ $term.Title }}

{{- end }}
{{- else }} {{/* ── Term page (/categories/gothic/) or plain list ── */}}
{{- if eq .Kind "term" }}
{{ .Type | humanize | singularize }}

{{ .Title }}

{{ len .Pages }} {{ if eq (len .Pages) 1 }}plate{{ else }}plates{{ end }} tagged {{ .Title }}. Return to archive →

{{- else }}
The Archive

All plates

Return to home →

{{- end }}
{{- $paginator := .Paginate .Pages }}
{{- range $i, $p := $paginator.Pages }} {{- partial "card.html" (dict "Page" $p "Index" $i) }} {{- end }}
{{- partial "pagination.html" $paginator }} {{- end }} {{ end }}