{{- define "main" -}}
{{- $totalPost := len (where site.RegularPages "Type" "in" (slice "posts" "status")) | string -}} {{- $totalPostHTML := printf `%s` $totalPost -}} {{- T "post.archiveCounter" $totalPostHTML | safeHTML -}}
{{- partial "components/announcement" . -}}
{{- $paginator := .Paginate (where site.RegularPages "Type" "in" (slice "posts" "status")) -}} {{- range $paginator.Pages -}} {{- partial "article-list/article" . -}} {{- end -}}
{{- partial "article-list/components/pagination" . -}}
{{- end -}}