From f45b522ebffafc61a3cb9b694bc3542747c73e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Mon, 21 May 2018 10:21:36 +0200 Subject: tpl/tplimpl: Adjust GA templates See #4616 --- tpl/tplimpl/embedded/templates.autogen.go | 4 ++-- tpl/tplimpl/embedded/templates/google_analytics.html | 2 +- tpl/tplimpl/embedded/templates/google_analytics_async.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tpl') diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 033d8defc..8556c32c7 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 }}