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

github.com/shaform/hugo-theme-den.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaform <shaform@gmail.com>2018-07-24 07:56:16 +0300
committerShaform <shaform@gmail.com>2018-07-24 07:56:16 +0300
commitf835d863df715ef97674b779a2b4ecefa31f4bd8 (patch)
treef7091beeb66db79ac6c2f0f3fedb122c49e98eec
parent61111d032ea742708cef3706bf910184eb05d71a (diff)
disable google analytics locally
-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 79abbdd..271029e 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -41,6 +41,6 @@
{{- template "_internal/schema.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}
-{{- if .Site.GoogleAnalytics -}}
+{{- if and .Site.GoogleAnalytics (not .Site.IsServer) -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}