Skip to content

Commit 163ae2c

Browse files
author
Khusika Dhamar Gusti
committed
fix(analytics): Set proper conditional statement
Fixes #61 Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
1 parent 4d3c643 commit 163ae2c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

layouts/_default/baseof.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
{{- partial "head/seo.html" . -}}
2020

2121
{{- $analytics := .Site.Config.Privacy.GoogleAnalytics -}}
22-
{{- if not $analytics.Disable }}{{ with .Site.GoogleAnalytics -}}
23-
{{ template "_internal/google_analytics.html" . }}
24-
{{- end -}}{{ end -}}
22+
{{- if and (not $analytics.Disable) (.Site.GoogleAnalytics) -}}
23+
{{- template "_internal/google_analytics.html" . -}}
24+
{{- end -}}
2525
</head>
2626
{{- if ne $offline true -}}
2727
<body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}">

0 commit comments

Comments
 (0)