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 From 44f1a08801ba8acf655071637ad7aa9a67981403 Mon Sep 17 00:00:00 2001 From: Mantas VilĨinskas <11616378+mistermantas@users.noreply.github.com> Date: Tue, 19 May 2020 11:58:00 +0300 Subject: Update index.html --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/index.html') diff --git a/layouts/index.html b/layouts/index.html index cb1c759..2faafaa 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -37,7 +37,7 @@ {{ partial "index/tabs" . }} - {{ if .Site.Params.enableHistory }} + {{ if not .Site.Params.disableIncidentHistory }}
{{ if eq .Site.Params.incidentHistoryFormat "yearly" }} {{ partial "index/incidents-yearly" . }} -- cgit v1.2.3-70-g09d2