Skip to content

Commit e15fff6

Browse files
committed
Update Hugo server detection for Google Analytics
1 parent 1399263 commit e15fff6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/partials/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{{ end }}
5656
{{ end }}
5757

58-
{{ if not .Site.IsServer }}
58+
{{ if not hugo.IsServer }}
5959
<!-- Google Analytics 4 -->
6060
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.Params.googleAnalytics }}" crossorigin="anonymous"></script>
6161
<script>

0 commit comments

Comments
 (0)