aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorMantas Vilčinskas <11616378+mistermantas@users.noreply.github.com>2020-05-19 13:09:41 +0300
committerGitHub <noreply@github.com>2020-05-19 13:09:41 +0300
commitfc16aa965d2c979e78f1d58d064c0330fa3e3cb9 (patch)
tree6a03bd7fdb9ebd49effd5bd62688cfd6765121d6 /layouts/index.html
parent409e777860f309c3bcff850b52654ac9e00692b9 (diff)
parent50d99f38b5fffdf22c5c229a9b2540928244282f (diff)
Add config option to disable incident history #108
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html22
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" . }}