From 3dc6b8c0cd2ad40d2289469be322f47b1827c381 Mon Sep 17 00:00:00 2001 From: Carlos Mogas da Silva Date: Fri, 14 May 2021 01:38:36 +0100 Subject: [PATCH] No point in printing the privacy if Matomo isn't enabled --- layouts/shortcodes/matomo_privacy.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/matomo_privacy.html b/layouts/shortcodes/matomo_privacy.html index 4313ff3..14100cf 100644 --- a/layouts/shortcodes/matomo_privacy.html +++ b/layouts/shortcodes/matomo_privacy.html @@ -1,3 +1,4 @@ +{{ if and (isset .Site.Params "matomo") (eq .Site.Params.matomo.enable true) }}