forked from drowl87/hextra_mirror
fix: remove deprecated site.GoogleAnalytics (#438)
* fix: remove deprecated site.GoogleAnalytics * ci: bump netlify Hugo version
This commit is contained in:
parent
852a07b15e
commit
2863a3a029
@ -1,10 +1,4 @@
|
|||||||
{{/* site.GoogleAnalytics is deprecated in Hugo v0.120.0 */}}
|
{{- with site.Config.Services.GoogleAnalytics.ID }}
|
||||||
{{/* it will be removed in a future version */}}
|
|
||||||
{{- $gtagID := "" -}}
|
|
||||||
{{- with site.GoogleAnalytics -}}{{ $gtagID = . }}{{- end -}}
|
|
||||||
{{- with site.Config.Services.GoogleAnalytics.ID -}}{{ $gtagID = . }}{{- end -}}
|
|
||||||
|
|
||||||
{{- with $gtagID }}
|
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ . }}"></script>
|
||||||
<script>
|
<script>
|
||||||
|
@ -7,6 +7,6 @@ command = "cd exampleSite && hugo --gc --minify --themesDir ../.. -b ${DEPLOY_PR
|
|||||||
ignore = "false"
|
ignore = "false"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
HUGO_VERSION = "0.126.1"
|
HUGO_VERSION = "0.132.2"
|
||||||
GO_VERSION = "1.22.3"
|
GO_VERSION = "1.22.3"
|
||||||
NODE_VERSION = "22.2.0"
|
NODE_VERSION = "22.2.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user