aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/index/incidents-yearly.html
diff options
context:
space:
mode:
authorMantas Vilčinskas <hi@mnts.lt>2019-10-05 19:43:56 +0300
committerMantas Vilčinskas <hi@mnts.lt>2019-10-05 19:43:56 +0300
commit19d5be70f84c21011869b6c8340a0589f353beb8 (patch)
treec90c955e9ab6845d3e9c703622e6b7b974b2507e /layouts/partials/index/incidents-yearly.html
parentf8bda4294a3fa9af533ca7ab8753663aed7aa7d1 (diff)
Added API for index, fully added #43 with tweaks to yrly archive
Diffstat (limited to 'layouts/partials/index/incidents-yearly.html')
-rw-r--r--layouts/partials/index/incidents-yearly.html9
1 files changed, 6 insertions, 3 deletions
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") }}
- <p class="center" id="{{ .Key }}"><a href="#{{ .Key }}" class="no-underline"><strong>{{ .Key }}</strong>
+
+{{ range ($incidents.GroupByDate "2006") }}
+ <div class="padding"></div>
+ <hr>
+ <p class="center" id="archive-{{ .Key }}"><a href="#archive-{{ .Key }}" class="no-underline"><strong>{{ .Key }}</strong>
<span class="faded">({{ len .Pages }})</span>
- </a></p>
+ </a></p><hr>
{{ range .Pages }}
{{ .Render "small" }}