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

github.com/gizak/nofancy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-aung 'Lewis' Yip <liaung@gmail.com>2016-12-30 16:42:23 +0300
committerLi-aung 'Lewis' Yip <liaung@gmail.com>2016-12-30 16:42:23 +0300
commit218554fe375669a2fe51c2d7a79fdc24220fa70b (patch)
treebe6c7f3e7f95a0081470bbd8f6347f2d10b9f47e
parent997a1f2a087d6c149f548f5b25ee2a640fe897df (diff)
Using `gaID` doesn't work. Using `gaid` does.
See Hugo Docs: https://gohugo.io/templates/variables/ "All Params are only accessible using all lowercase characters."
-rw-r--r--layouts/partials/footer.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index b4d6151..bfb0f78 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -70,14 +70,14 @@
}
});
</script>
-{{ if .Site.Author.gaID }}
+{{ if .Site.Author.gaid }}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
- ga('create', '{{ .Site.Author.gaID }}', 'auto');
+ ga('create', '{{ .Site.Author.gaid }}', 'auto');
ga('send', 'pageview');
</script>
{{ end }}