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

github.com/EmielH/hallo-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNazım Can Altınova <canaltinova@users.noreply.github.com>2019-05-05 18:58:43 +0300
committerEmiel Hollander <EmielH@users.noreply.github.com>2019-05-05 18:58:43 +0300
commit5e140c4d9898412e60ea7167df425ac12f797bdc (patch)
treea2b47dacda1fcdda989aef805cc951bfbc8f0eb6 /layouts
parent8691171e923f8ab5f191f54ec72bc41451a582f3 (diff)
Add option to use Google Analytics (#14)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/head.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 6e0dd5e..aed1b99 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -33,4 +33,8 @@
<!-- RSS -->
<link href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
+
+ {{ if hugo.Environment | eq "production" }}
+ {{ template "_internal/google_analytics_async.html" . }}
+ {{ end }}
</head>