diff options
author | Vivek R <vividvilla@gmail.com> | 2019-12-30 16:54:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-30 16:54:36 +0300 |
commit | 972d3cef5457c04f3901a7faff92e42a900a2061 (patch) | |
tree | d7f2a16e5ba694993d35ac004c3c2bd1b390dd73 | |
parent | 6148bfde450dd8c50f5c43a4a73303fa286a1565 (diff) | |
parent | de58726d3b0b8ec43ccfad4239e3c3f8e9869567 (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.html | 2 |
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 -}} |