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

github.com/yoshiharuyamashita/blackburn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiharu Yamashita <yoshiharuyamashita@users.noreply.github.com>2021-02-07 12:39:45 +0300
committerGitHub <noreply@github.com>2021-02-07 12:39:45 +0300
commitad1e4d4b858b2c520dc09d59f91a902a3072186d (patch)
treeeff13c2a274894bc40c648d6097f956d0d5cbeff
parented55660696e9f5c8d9cf369c261c9494b99a75bf (diff)
parent7f4608d71fcff7ade6ebbf6a15a751df3d4eac7a (diff)
Merge pull request #108 from Tristor/goatcounter-pr
Adding in support for GoatCounter privacy respecting analytics.
-rw-r--r--layouts/partials/footer.html1
-rw-r--r--layouts/partials/goatcounter_analytics.html5
2 files changed, 6 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 42af21b..f0fed05 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -3,6 +3,7 @@
<script src="{{ .Site.BaseURL }}js/ui.js"></script>
<script src="{{ .Site.BaseURL }}js/menus.js"></script>
+{{ partial "goatcounter_analytics.html" . }}
{{ partial "google_analytics.html" . }}
{{ partial "piwik_analytics.html" . }}
{{ partial "footer_mathjax" . }}
diff --git a/layouts/partials/goatcounter_analytics.html b/layouts/partials/goatcounter_analytics.html
new file mode 100644
index 0000000..9810f2b
--- /dev/null
+++ b/layouts/partials/goatcounter_analytics.html
@@ -0,0 +1,5 @@
+{{ with .Site.Params.goatcounterAnalytics }}
+<!-- GoatCounter -->
+<script data-goatcounter="https://{{ . }}.goatcounter.com/count"
+ async src="//gc.zgo.at/count.js"></script>
+{{ end }}