Fix #7: add ga internal template

This commit is contained in:
Dmitry Kolosov 2020-01-22 20:51:35 +03:00
parent eaec70ed4b
commit a6c28e1b8d
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ author: ""
theme: "anubis"
paginate: 10
disqusShortname: yourdiscussshortname
googleAnalytics: UA-123-45
menu:
main:

View File

@ -39,3 +39,6 @@
<!-- <meta name="twitter:url" content=""> -->
<!-- <meta name="twitter:image" content=""> -->
<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 }}