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

github.com/guangmean/Niello.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/foot.html')
-rw-r--r--layouts/partials/foot.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/layouts/partials/foot.html b/layouts/partials/foot.html
index 47501bb..fd8c4e2 100644
--- a/layouts/partials/foot.html
+++ b/layouts/partials/foot.html
@@ -7,9 +7,10 @@
<script src="{{.Site.BaseURL | relLangURL}}js/vendor/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
-<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
+{{ if .Site.Params.ga }}
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
- ga('create', 'UA-XXXXX-Y', 'auto'); ga('send', 'pageview')
+ga('create', '{{- .Site.Params.ga -}}', 'auto'); ga('send', 'pageview')
</script>
-<script src="https://www.google-analytics.com/analytics.js" async defer></script>
+<script src="//www.google-analytics.com/analytics.js" async defer></script>
+{{ end }}