From 9b7e44a06ecc64bc8e0eac0b7e0a681b592f4fd8 Mon Sep 17 00:00:00 2001 From: Filip Vukelic <136091729+filvuk@users.noreply.github.com> Date: Sun, 8 Sep 2024 00:44:59 +0200 Subject: [PATCH] feat: support latest Hugo version - remove remains of deprecated Site.GoogleAnalytics (#3139) --- .../blox-bootstrap/layouts/partials/components/feedback.html | 2 +- modules/blox-tailwind/layouts/partials/components/feedback.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/blox-bootstrap/layouts/partials/components/feedback.html b/modules/blox-bootstrap/layouts/partials/components/feedback.html index 22f193ce5..5cbae9223 100644 --- a/modules/blox-bootstrap/layouts/partials/components/feedback.html +++ b/modules/blox-bootstrap/layouts/partials/components/feedback.html @@ -1,4 +1,4 @@ -{{ $ga := site.Params.marketing.analytics.google_analytics | default site.GoogleAnalytics | default "" }} +{{ $ga := site.Params.marketing.analytics.google_analytics | default "" }} {{ $show_feedback := .Params.feedback | default true }} {{ if hugo.IsProduction | and $ga | and $show_feedback }} diff --git a/modules/blox-tailwind/layouts/partials/components/feedback.html b/modules/blox-tailwind/layouts/partials/components/feedback.html index ebb713c6e..5087dd0c9 100644 --- a/modules/blox-tailwind/layouts/partials/components/feedback.html +++ b/modules/blox-tailwind/layouts/partials/components/feedback.html @@ -1,5 +1,5 @@ {{/* TODO: port JS & response text from Bootstrap module. Re-integrate with GA plus Fathom/Plausible */}} -{{/* $ga := site.Params.marketing.analytics.google_analytics | default site.GoogleAnalytics | default "" */}} +{{/* $ga := site.Params.marketing.analytics.google_analytics | default "" */}} {{ $show_feedback := .Params.feedback | default true }} {{ if hugo.IsProduction | and $show_feedback }}{{/* | and $ga */}}