From: Bjørn Erik Pedersen Date: Mon, 21 May 2018 08:21:36 +0000 (+0200) Subject: tpl/tplimpl: Adjust GA templates X-Git-Tag: v0.41~33 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f45b522ebffafc61a3cb9b694bc3542747c73e07;p=brevno-suite%2Fhugo tpl/tplimpl: Adjust GA templates See #4616 --- diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 033d8def..8556c32c 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -99,7 +99,7 @@ var EmbeddedTemplates = [][2]string{ comments powered by Disqus{{end}} {{- end -}}`}, - {`google_analytics.html`, `{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}} + {`google_analytics.html`, `{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}} {{- if not $pc.Disable -}} {{ with .Site.GoogleAnalytics }} {{ end }} {{- end -}}`}, - {`google_analytics_async.html`, `{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}} + {`google_analytics_async.html`, `{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}} {{- if not $pc.Disable -}} {{ with .Site.GoogleAnalytics }}