diff options
author | Mantas Vilčinskas <11616378+mistermantas@users.noreply.github.com> | 2020-05-19 13:09:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 13:09:41 +0300 |
commit | fc16aa965d2c979e78f1d58d064c0330fa3e3cb9 (patch) | |
tree | 6a03bd7fdb9ebd49effd5bd62688cfd6765121d6 /layouts/index.html | |
parent | 409e777860f309c3bcff850b52654ac9e00692b9 (diff) | |
parent | 50d99f38b5fffdf22c5c229a9b2540928244282f (diff) |
Add config option to disable incident history #108
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/layouts/index.html b/layouts/index.html index c02224a..2faafaa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -37,16 +37,18 @@ {{ partial "index/tabs" . }} <!-- All incidents + pagination --> - <div class="contain contain--more" id="incidents"> - {{ 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 }} - <div class="padding"></div> - </div> + {{ if not .Site.Params.disableIncidentHistory }} + <div class="contain contain--more" id="incidents"> + {{ 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 }} + <div class="padding"></div> + </div> + {{ end }} {{ partial "js" . }} {{ partial "footer" . }} |