diff options
author | Mahito TANNO <pb94.mahito@gmail.com> | 2019-11-09 17:38:37 +0300 |
---|---|---|
committer | Mahito TANNO <pb94.mahito@gmail.com> | 2019-11-09 18:00:18 +0300 |
commit | de58726d3b0b8ec43ccfad4239e3c3f8e9869567 (patch) | |
tree | d7d33f933bd3bd00734ff1d27bf3176e0d5827b0 /layouts | |
parent | 8961042aa10efe8f6cbe320bc61f6b3ef5333cfb (diff) |
Disable Google Analytics when hugo server
Diffstat (limited to 'layouts')
-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 -}} |