+ {{- if not $paginator.HasPrev }}
+
+
+ {{- $length := len .Data.Pages }}
+ {{- if eq $length 0 }}
+ {{ $lang.counter.archives.zero }}
+ {{ else }}
+ {{ printf $lang.counter.archives.other $length }}
+ {{ end -}}
+
+
+ {{- end -}}
+
+ {{- 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 ) }}
+
+
{{ $thisYear }}
+
+ {{- end }}
+
+
+
+ {{ $element.Date.Format "01-02" }}
+
+
+
+ {{ .Title }}
+
+
+
+ {{- end -}}
+
+
+
+{{ end }}
\ No newline at end of file
--
cgit v1.2.3