From c00bb6187dfd6371141863ee7d4d056688bc44da Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Tue, 9 Jul 2019 22:54:58 +0200 Subject: [PATCH] Moving logic inside matomo partial. --- layouts/_default/baseof.html | 2 +- layouts/partials/matomo.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ed58332..c7e3631 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -9,7 +9,7 @@ {{- block "head" . }}{{ end }} {{ partial "meta_json_ld.html" . }} {{ partial "scripts.html" . }} -{{ if and .Site.Params.piwikTrackerUrl .Site.Params.piwikSiteID }}{{ partialCached "matomo.html" . }}{{ end -}} +{{ partialCached "matomo.html" . }} diff --git a/layouts/partials/matomo.html b/layouts/partials/matomo.html index 7867c62..ce3ea2b 100644 --- a/layouts/partials/matomo.html +++ b/layouts/partials/matomo.html @@ -1,3 +1,4 @@ +{{ if and .Site.Params.piwikTrackerUrl .Site.Params.piwikSiteID -}} +{{ end -}}