From 915174fdbaf728b2aa5edb05bdd842cd82670e02 Mon Sep 17 00:00:00 2001 From: panda-z Date: Sat, 5 Jan 2019 22:08:34 +0800 Subject: [PATCH] feat(scripts): disable google analytics on localhost (#123) --- layouts/partials/scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 561bd3c..de35229 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -90,7 +90,7 @@ {{- end }} -{{- if .Site.GoogleAnalytics -}} +{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}} {{ template "_internal/google_analytics_async.html" . }} {{- end -}}