diff options
author | Damien Caselli <damiencaselli@users.noreply.github.com> | 2018-02-06 11:35:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 11:35:56 +0300 |
commit | e1a4e15eb070987909451c9436dc5e9ca0cd2417 (patch) | |
tree | 6abcded066c54c28fe6ea022dba5b4790f131a27 | |
parent | 0b33c5e0c3677f8b5ccc07ffb979e6eaf125bd88 (diff) | |
parent | 1b0388abe393883544490d825b38ad192df5e61d (diff) |
Merge pull request #7 from sknvo/feature/google-analytics
Add google analytics support
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/partials/analytics.html | 1 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 |
3 files changed, 6 insertions, 1 deletions
@@ -17,6 +17,8 @@ Please refer to the [Hugo documentation](http://gohugo.io/themes/installing/). A few parameters can be adjusted in the site config: ```toml +# googleAnalytics = "UA-123-45" + [params] # your name to display by the copyright sign diff --git a/layouts/partials/analytics.html b/layouts/partials/analytics.html new file mode 100644 index 0000000..f13b4a0 --- /dev/null +++ b/layouts/partials/analytics.html @@ -0,0 +1 @@ +{{ template "_internal/google_analytics_async.html" . }}
\ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 0394839..6abb4e5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,7 @@ <footer class="site-footer"> <span class="owner">©{{ now.Year }} {{ .Site.Params.authorname }}</span> - + + {{ partial "analytics.html" . }} + <!-- {{ .Hugo.BuildDate }} --> </footer> |