aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorPascal Breuer <pbreuer@breuco.de>2020-05-11 17:51:10 +0200
committerPascal Breuer <pbreuer@breuco.de>2020-05-11 17:51:10 +0200
commitc516295bb8f6d72312eae4a67d14e904ec1fa4f2 (patch)
tree8641be4350e176cececd79bb96d94c50fc490b6a /layouts/index.html
parentab704222e301254fa7a6a8a062d98b923975f9dc (diff)
Add config option to disable incident history
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..cb1c759 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 .Site.Params.enableHistory }}
+ <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" . }}