+
+
+
+
+
+ {{- range $index, $element := $paginator.Pages -}}
+ {{- $thisYear := $element.Date.Format "2006" }}
+ {{- $lastElement := $index | add -1 | index $paginator.Pages }}
+ {{ if or (eq $index 0) ( ne ($lastElement.Date.Format "2006") $thisYear ) }}
+
+
+ {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
+
+
+ {{- end }}
+ {{ $thisYear }}
+
+
+ {{ $element.Date.Format "01-02" }}
+
+
+
+ {{ .Title }}
+
+
+
+ {{- end -}}
+ -
+ {{ if .Paginator.HasPrev }}
+
- + ← {{ i18n "newerPosts" }} + + {{ end }} + {{ if .Paginator.HasNext }} +
- + {{ i18n "olderPosts" }} → + + {{ end }} +