mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
Fix some recently broken embedded templates
And add tests for them. Fixes #4757
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
|
||||
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
|
||||
{{- if not $pc.Disable -}}
|
||||
{{ with .Site.GoogleAnalytics }}
|
||||
<script>
|
||||
@@ -15,7 +15,7 @@ if (!doNotTrack) {
|
||||
{{ end }}
|
||||
{{- end -}}
|
||||
{{- define "__ga_js_set_doNotTrack" -}}{{/* This is also used in the async version. */}}
|
||||
{{- $pc := .Site.PrivacyConfig.GoogleAnalytics -}}
|
||||
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
|
||||
{{- if not $pc.RespectDoNotTrack -}}
|
||||
var doNotTrack = false;
|
||||
{{- else -}}
|
||||
|
Reference in New Issue
Block a user