From 19d5be70f84c21011869b6c8340a0589f353beb8 Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas Date: Sat, 5 Oct 2019 19:43:56 +0300 Subject: Added API for index, fully added #43 with tweaks to yrly archive --- layouts/partials/index/incidents-yearly.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'layouts/partials/index/incidents-yearly.html') diff --git a/layouts/partials/index/incidents-yearly.html b/layouts/partials/index/incidents-yearly.html index 5cc323a..d07be9d 100644 --- a/layouts/partials/index/incidents-yearly.html +++ b/layouts/partials/index/incidents-yearly.html @@ -1,9 +1,12 @@ {{ $incidents := where .Site.RegularPages "Params.section" "issue" }} -{{ range ((where .Site.RegularPages "Params.section" "issue").GroupByDate "2006") }} -

{{ .Key }} + +{{ range ($incidents.GroupByDate "2006") }} +

+
+

{{ .Key }} ({{ len .Pages }}) -

+


{{ range .Pages }} {{ .Render "small" }} -- cgit v1.2.3-70-g09d2