aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
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" . }}