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

github.com/Mitrichius/hugo-theme-anubis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kolosov <mitrichius@gmail.com>2020-01-22 20:51:35 +0300
committerDmitry Kolosov <mitrichius@gmail.com>2020-01-22 20:51:35 +0300
commita6c28e1b8d85f5ba3b6af8469d0a1615937da572 (patch)
tree6a0f543bf9469e7932c606a817e2c37a7ce20af0 /layouts/partials/head.html
parenteaec70ed4b7a268feb4a616c9a96ece640aa305e (diff)
Fix #7: add ga internal template
Diffstat (limited to 'layouts/partials/head.html')
-rw-r--r--layouts/partials/head.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 1474b76..49d96c1 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -38,4 +38,7 @@
<!-- <meta name="twitter:description" content=""> -->
<!-- <meta name="twitter:url" content=""> -->
<!-- <meta name="twitter:image" content=""> -->
-<meta name="twitter:site" content="@XXX"> \ No newline at end of file
+<meta name="twitter:site" content="@XXX">
+{{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }}
+ {{ template "_internal/google_analytics_async.html" . }}
+{{ end }} \ No newline at end of file