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

github.com/leonardofaria/bento.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Faria <leonardofaria@gmail.com>2020-11-22 23:08:45 +0300
committerLeonardo Faria <leonardofaria@gmail.com>2020-11-22 23:08:45 +0300
commitc7b4727e3ec4fbd76a692a6d00a8abdb5969972a (patch)
tree8de0c49762e6ec38144e506ff76b25f0247ffadb
parent4e1ff4dffec8e895f562cd8c5c26cdfeefcd5939 (diff)
Stop loading analytics in development mode
-rw-r--r--layouts/partials/footer.html12
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