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

github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorByeonggon Lee <gonny952@gmail.com>2018-11-28 19:45:46 +0300
committerByeonggon Lee <gonny952@gmail.com>2018-11-28 19:45:46 +0300
commit9b331b9f4f5039b98cdbe6564385e4132707f379 (patch)
tree738fd6498d9aa8cbf57aab2d433f58fc1c852971
parentf14f00bad986e1a39ca769cba39539d71091c6ff (diff)
Google analytics support
-rw-r--r--layouts/_default/baseof.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 5cde484..b8174ad 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -35,6 +35,9 @@
{{- block "main" . }}{{- end }}
</div>
<script>hljs.initHighlightingOnLoad();</script>
+ {{- if not (eq .Site.GoogleAnalytics "") -}}
+ {{ template "_internal/google_analytics_async.html" . }}
+ {{- end -}}
</body>
</html>