feat(scripts): disable google analytics on localhost (#123)

This commit is contained in:
panda-z 2019-01-05 22:08:34 +08:00 committed by olOwOlo
parent 8a727486e8
commit 915174fdba

View file

@ -90,7 +90,7 @@
{{- end }} {{- end }}
<!-- Analytics --> <!-- Analytics -->
{{- if .Site.GoogleAnalytics -}} {{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }} {{ template "_internal/google_analytics_async.html" . }}
{{- end -}} {{- end -}}