tpl/tplimpl: Adjust GA templates
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 May 2018 08:21:36 +0000 (10:21 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 May 2018 08:21:36 +0000 (10:21 +0200)
See #4616

tpl/tplimpl/embedded/templates.autogen.go
tpl/tplimpl/embedded/templates/google_analytics.html
tpl/tplimpl/embedded/templates/google_analytics_async.html

index 033d8defc4a7cb89751d2e148ebb327aac921de5..8556c32c7f5f5f5c0d9b39ecf47614f3573786d4 100644 (file)
@@ -99,7 +99,7 @@ var EmbeddedTemplates = [][2]string{
 <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
 <a href="https://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>{{end}}
 {{- end -}}`},
-       {`google_analytics.html`, `{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
+       {`google_analytics.html`, `{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
 {{- if not $pc.Disable -}}
 {{ with .Site.GoogleAnalytics }}
 <script>
@@ -113,7 +113,7 @@ ga('send', 'pageview');
 </script>
 {{ 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 }}
 <script>
index 2473ff5dd07ae83c5bdbb72c4999015c69d62775..89c1932406dad2454567badc441f06ad0e03b646 100755 (executable)
@@ -1,4 +1,4 @@
-{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
+{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
 {{- if not $pc.Disable -}}
 {{ with .Site.GoogleAnalytics }}
 <script>
index 3088949c6e972046532ff15b3e4c7530c820ad1d..eb4fe9b8878d10a4d3015e12601bb5cb97ead1ce 100755 (executable)
@@ -1,4 +1,4 @@
-{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
+{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
 {{- if not $pc.Disable -}}
 {{ with .Site.GoogleAnalytics }}
 <script>