From c516295bb8f6d72312eae4a67d14e904ec1fa4f2 Mon Sep 17 00:00:00 2001 From: Pascal Breuer Date: Mon, 11 May 2020 17:51:10 +0200 Subject: Add config option to disable incident history --- layouts/index.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'layouts/index.html') 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" . }} -
- {{ 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 }} -
-
+ {{ if .Site.Params.enableHistory }} +
+ {{ 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 }} +
+
+ {{ end }} {{ partial "js" . }} {{ partial "footer" . }} -- cgit v1.2.3-70-g09d2