{{- define "main" -}}
{{- $coundHTML := printf `%s` (len .Pages | string) -}} {{- $titleHTML := printf `%s` .Title -}} {{- if eq .Data.Plural "tags" -}} {{- T "taxonomy.tag" (dict "Count" $coundHTML "Title" $titleHTML) | safeHTML -}} {{- else -}} {{- T "taxonomy.category" (dict "Count" $coundHTML "Title" $titleHTML) | safeHTML -}} {{- end -}}
{{- $paginator := .Paginate (where .Pages "Type" "in" (slice "posts" "status")) -}} {{- range $paginator.Pages -}} {{- partial "article-list/article" . -}} {{- end -}}
{{- partial "article-list/components/pagination" . -}}
{{- end -}}