{{- define "main" -}}
{{ T "archives.title" }}
{{- $total_post := len (where site.RegularPages "Type" "in" (slice "posts" "status")) -}} {{- T "archives.total" $total_post | safeHTML -}}
{{- range sort .Site.Taxonomies.categories "Count" "desc" -}} {{- .Page.Title -}} {{- .Count -}} {{- end -}}
{{- range (where site.RegularPages "Type" "in" (slice "posts" "status")).GroupByDate (T "date.m_y") -}}
{{- .Key -}}
{{- end -}}
{{- T "archives.helloWorld" -}}
{{- end -}}