Skip to content

Commit

Permalink
feat(scripts): disable google analytics on localhost (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
panda-z authored and olOwOlo committed Jan 5, 2019
1 parent 8a72748 commit 915174f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
{{- end }}

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

Expand Down

0 comments on commit 915174f

Please sign in to comment.