diff options
author | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-05 19:43:56 +0300 |
---|---|---|
committer | Mantas Vilčinskas <hi@mnts.lt> | 2019-10-05 19:43:56 +0300 |
commit | 19d5be70f84c21011869b6c8340a0589f353beb8 (patch) | |
tree | c90c955e9ab6845d3e9c703622e6b7b974b2507e /layouts/index.html | |
parent | f8bda4294a3fa9af533ca7ab8753663aed7aa7d1 (diff) |
Added API for index, fully added #43 with tweaks to yrly archive
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index da6f6ad..c02224a 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -38,8 +38,10 @@ <!-- All incidents + pagination --> <div class="contain contain--more" id="incidents"> - {{ if .Site.Params.enableYearlyIncidentHistory }} + {{ if eq .Site.Params.incidentHistoryFormat "yearly" }} {{ partial "index/incidents-yearly" . }} + {{ else if eq .Site.Params.incidentHistoryFormat "monthly" }} + {{ partial "index/incidents-monthly" . }} {{ else }} {{ partial "index/incidents" . }} {{ end }} |