mirror of
https://github.com/imfing/hextra.git
synced 2025-06-20 00:51:18 -04:00
chore: support services.googleAnalytics.ID
(#173)
* chore: support `services.googleAnalytics.ID` and deprecate `site.googleAnalytics` * chore: remove warning
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
|
||||
|
||||
<!-- Google Analytics -->
|
||||
{{- if and .Site.GoogleAnalytics (eq hugo.Environment "production") }}
|
||||
{{- if and (eq hugo.Environment "production") (or .Site.GoogleAnalytics .Site.Config.Services.GoogleAnalytics.ID) }}
|
||||
<link rel="preconnect" href="https://www.googletagmanager.com" crossorigin />
|
||||
{{ partial "google-analytics.html" . }}
|
||||
{{- end }}
|
||||
|
Reference in New Issue
Block a user