tpl/tplimpl: Adjust GA templates

See #4616
This commit is contained in:
Bjørn Erik Pedersen 2018-05-21 10:21:36 +02:00
parent 6789207347
commit f45b522ebf
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F
3 changed files with 4 additions and 4 deletions

View 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>

View file

@ -1,4 +1,4 @@
{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>

View file

@ -1,4 +1,4 @@
{{- $pc := .Page.Site.PrivacyConfig.GoogleAnalytics -}}
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
{{- if not $pc.Disable -}}
{{ with .Site.GoogleAnalytics }}
<script>