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

github.com/damiencaselli/paperback.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Caselli <damiencaselli@users.noreply.github.com>2018-02-06 11:35:56 +0300
committerGitHub <noreply@github.com>2018-02-06 11:35:56 +0300
commite1a4e15eb070987909451c9436dc5e9ca0cd2417 (patch)
tree6abcded066c54c28fe6ea022dba5b4790f131a27
parent0b33c5e0c3677f8b5ccc07ffb979e6eaf125bd88 (diff)
parent1b0388abe393883544490d825b38ad192df5e61d (diff)
Merge pull request #7 from sknvo/feature/google-analytics
Add google analytics support
-rw-r--r--README.md2
-rw-r--r--layouts/partials/analytics.html1
-rw-r--r--layouts/partials/footer.html4
3 files changed, 6 insertions, 1 deletions
diff --git a/README.md b/README.md
index e0a0cde..dbec8f2 100644
--- a/README.md
+++ b/README.md
@@ -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>