From 487e2093e0eb29d107ab6b825d70e217dd07b3b3 Mon Sep 17 00:00:00 2001 From: SilverLuke Date: Mon, 30 Oct 2023 18:12:33 +0100 Subject: [PATCH] GoatCounter custom instance and beckward compatibility --- layouts/partials/analytics.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html index 8ae56fb..860bac5 100644 --- a/layouts/partials/analytics.html +++ b/layouts/partials/analytics.html @@ -1,6 +1,6 @@ {{ with site.Params.features.analytics }} - {{ if .enable }} + {{ if or .enable .enabled }} {{ with .services }} {{ with .google }} @@ -18,12 +18,12 @@ {{ end }} - {{ with .goatCounter }} - {{ if .selfHosted }} - - {{ else }} - - {{ end }} + {{ with .goatCounter }} + {{ with .code }} + + {{ else }} + + {{ end }} {{ end }}