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:
authorVivek R <vividvilla@gmail.com>2019-12-30 16:54:36 +0300
committerGitHub <noreply@github.com>2019-12-30 16:54:36 +0300
commit972d3cef5457c04f3901a7faff92e42a900a2061 (patch)
treed7f2a16e5ba694993d35ac004c3c2bd1b390dd73
parent6148bfde450dd8c50f5c43a4a73303fa286a1565 (diff)
parentde58726d3b0b8ec43ccfad4239e3c3f8e9869567 (diff)
Merge pull request #34 from mahito1594/feature/disable-ga-when-server
Disable Google Analytics when the site being served with build-in 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 -}}