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

github.com/vividvilla/ezhil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahito TANNO <pb94.mahito@gmail.com>2019-11-09 17:38:37 +0300
committerMahito TANNO <pb94.mahito@gmail.com>2019-11-09 18:00:18 +0300
commitde58726d3b0b8ec43ccfad4239e3c3f8e9869567 (patch)
treed7d33f933bd3bd00734ff1d27bf3176e0d5827b0
parent8961042aa10efe8f6cbe320bc61f6b3ef5333cfb (diff)
Disable Google Analytics when hugo server
-rw-r--r--layouts/partials/footer.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 52d25ba..1841def 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -4,7 +4,9 @@
</nav>
</div>
+{{ if not .Site.IsServer }}
{{ template "_internal/google_analytics_async.html" . }}
+{{ end }}
{{- with .Site.Params.Social -}}
<script>feather.replace()</script>
{{- end -}}