We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d3c643 commit 163ae2cCopy full SHA for 163ae2c
1 file changed
layouts/_default/baseof.html
@@ -19,9 +19,9 @@
19
{{- partial "head/seo.html" . -}}
20
21
{{- $analytics := .Site.Config.Privacy.GoogleAnalytics -}}
22
- {{- if not $analytics.Disable }}{{ with .Site.GoogleAnalytics -}}
23
- {{ template "_internal/google_analytics.html" . }}
24
- {{- end -}}{{ end -}}
+ {{- if and (not $analytics.Disable) (.Site.GoogleAnalytics) -}}
+ {{- template "_internal/google_analytics.html" . -}}
+ {{- end -}}
25
</head>
26
{{- if ne $offline true -}}
27
<body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}">
0 commit comments