{{ define "title" }} {{ $name := "archive" }} {{ if lower $name | i18n }} {{ $name = lower $name | i18n }} {{ end }}

{{ $name }}

{{ end }} {{ define "main" }}
{{ $prev := 3000}} {{range where .Site.RegularPages "Type" "in" site.Params.searchSections }} {{ $date := .Date }} {{ if gt $prev ($date.Format "2006") }}

{{ $date.Format "2006" }}

{{end}}
{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}

{{ $prev = $date.Format "2006"}} {{end}}
{{ end }}