{{- define "title" }} {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}} {{- end -}} {{- define "content" -}}
{{- /* Title */ -}}

{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} {{- len .Pages -}}

{{- /* Total word count */ -}} {{- /* See https://github.com/hugo-fixit/FixIt/issues/124 */ -}} {{- $localData := newScratch -}} {{- range .Pages -}} {{- $localData.Add "totalWordCount" .WordCount -}} {{- end -}} {{- with ($localData.Get "totalWordCount") -}} {{- $humanizedNum := . -}} {{- if ge $humanizedNum 1000 -}} {{- $humanizedNum = printf "%.2fK" (div $humanizedNum 1000.0) -}} {{- end -}}

{{- dict "Class" "fa-regular fa-keyboard fa-fw" | partial "plugin/icon.html" }} {{ T "taxonomy.totalwordCount" (dict "Count" $humanizedNum) -}}

{{- end -}}
{{- /* Paginate */ -}} {{- if .Pages -}} {{- $pages := .Pages.GroupByDate "2006" -}} {{- with .Site.Params.section.paginate | default .Site.Params.paginate -}} {{- $pages = $.Paginate $pages . -}} {{- else -}} {{- $pages = .Paginate $pages -}} {{- end -}} {{- partial "recently-updated.html" . -}} {{- range $pages.PageGroups -}}

{{ .Key }}

{{- range .Pages -}}
{{- .Title -}} {{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}}
{{- end -}} {{- end -}} {{- partial "paginator.html" . -}} {{- end -}}
{{- end -}}