diff options
author | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-22 23:08:45 +0300 |
---|---|---|
committer | Leonardo Faria <leonardofaria@gmail.com> | 2020-11-22 23:08:45 +0300 |
commit | c7b4727e3ec4fbd76a692a6d00a8abdb5969972a (patch) | |
tree | 8de0c49762e6ec38144e506ff76b25f0247ffadb | |
parent | 4e1ff4dffec8e895f562cd8c5c26cdfeefcd5939 (diff) |
Stop loading analytics in development mode
-rw-r--r-- | layouts/partials/footer.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8a25130..9d9d37d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -71,10 +71,12 @@ {{end}} {{ template "_internal/google_analytics.html" . }} -{{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }} - {{- partial "fathom" . -}} -{{ end }} +{{ if not .Site.IsServer }} + {{ if and .Site.Params.fathomAnalytics .Site.Params.fathomAnalytics.siteID }} + {{- partial "fathom" . -}} + {{ end }} -{{ if and .Site.Params.umami }} - {{- partial "umami" . -}} + {{ if and .Site.Params.umami }} + {{- partial "umami" . -}} + {{ end }} {{ end }}
\ No newline at end of file |