{{- define "title" -}} {{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}} {{- end -}} {{- define "content" -}}
{{- /* Title */ -}}

{{- $taxonomy := .Data.Singular -}} {{- if eq $taxonomy "category" -}}  {{ .Title }} {{- else if eq $taxonomy "tag" -}}  {{ .Title }} {{- else -}} {{- printf "%s - %s" (T $taxonomy | default $taxonomy) .Title -}} {{- end -}}

{{- /* Paginate */ -}} {{- $pages := .Pages.GroupByDate "2006" -}} {{- with .Site.Params.list.paginate | default .Site.Params.paginate -}} {{- $pages = $.Paginate $pages . -}} {{- else -}} {{- $pages = .Paginate $pages -}} {{- end -}} {{- range $pages.PageGroups -}}

{{ .Key }}

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