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

github.com/yihui/hugo-xmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYihui Xie <xie@yihui.name>2017-06-20 07:29:34 +0300
committerYihui Xie <xie@yihui.name>2022-06-15 06:50:41 +0300
commit4010d1cc5a867a4ca1678fd2ce68560642394a06 (patch)
tree01520d8d6e3c968b910df3fc83435db87bd58241
parentae0bdbeb103133c15936fd15d77f9bba6119e59d (diff)
enable Google Analyticsfeature/google-analytics
-rw-r--r--exampleSite/config.yaml2
-rw-r--r--exampleSite/layouts/partials/foot_custom.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 59b9ae1..d285a06 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -2,7 +2,7 @@ baseurl: "/"
languageCode: "en-us"
title: "A minimal Hugo website"
theme: "hugo-xmin"
-googleAnalytics: ""
+googleAnalytics: "UA-1988641-2"
disqusShortname: ""
ignoreFiles: ["\\.Rmd$", "\\.Rmarkdown$", "_cache$", "\\.knit\\.md$", "\\.utf8\\.md$"]
footnotereturnlinkcontents: "↩"
diff --git a/exampleSite/layouts/partials/foot_custom.html b/exampleSite/layouts/partials/foot_custom.html
index 4f9aaa2..b03a61a 100644
--- a/exampleSite/layouts/partials/foot_custom.html
+++ b/exampleSite/layouts/partials/foot_custom.html
@@ -2,3 +2,5 @@
<script defer src="//mathjax.rstudio.com/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script defer src="//yihui.org/js/center-img.js"></script>
+
+{{ template "_internal/google_analytics.html" . }}