Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong-Siang Shih <shaform@gmail.com>2018-07-27 10:55:53 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-07-27 10:55:53 +0300
commitec712af8343f76b0a1cfec42e3545ff09173a014 (patch)
treeaca749290aed8479321a530f6991a2a16cb2ddeb
parent3e5da5d7542e3727cbdd114978208b5c6c1763f2 (diff)
disable google analytics on localhost (#98)
-rw-r--r--layouts/partials/head.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6ab3736..fa0466b 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -96,7 +96,7 @@
<![endif]-->` | safeHTML }}
<!-- Analytics -->
-{{- if .Site.GoogleAnalytics -}}
+{{- if and (not .Site.IsServer) .Site.GoogleAnalytics -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}