mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.git
synced 2024-11-16 13:43:20 +00:00
fix: build
This commit is contained in:
parent
2c4ffebc79
commit
ed910b7427
|
@ -39,13 +39,3 @@
|
|||
{{ end -}}
|
||||
|
||||
{{ partial "hooks/head-end.html" . -}}
|
||||
|
||||
{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}}
|
||||
{{ if hugo.IsProduction -}}
|
||||
{{ $enableGtagForUniversalAnalytics := not .Site.Params.disableGtagForUniversalAnalytics -}}
|
||||
{{ if (or $enableGtagForUniversalAnalytics (hasPrefix .Site.GoogleAnalytics "G-")) -}}
|
||||
{{ template "_internal/google_analytics_gtag.html" . -}}
|
||||
{{ else -}}
|
||||
{{ template "_internal/google_analytics_async.html" . -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
|
|
Loading…
Reference in a new issue