feat: disable google analytics in dev environment

This commit is contained in:
aka 2023-12-09 19:22:18 +08:00
parent 3b7043e0b2
commit 067cc8786b

View File

@ -21,6 +21,7 @@
{{ with .Site.Params.favicon }} {{ with .Site.Params.favicon }}
<link rel="shortcut icon" href="{{ . }}" /> <link rel="shortcut icon" href="{{ . }}" />
{{ end }} {{ end }}
{{- if not .Site.IsServer -}}
{{- template "_internal/google_analytics.html" . -}} {{- template "_internal/google_analytics.html" . -}}
{{- end -}}
{{- partial "head/custom.html" . -}} {{- partial "head/custom.html" . -}}