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

github.com/vantagedesign/ace-documentation.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-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 e2b6a5a..1e7e079 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -17,6 +17,9 @@
{{ $style := resources.Get "css/ace.scss" | toCSS | minify }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
- {{ template "_internal/google_analytics_async.html" . }}
+ <!-- Only include the tracking when using `hugo` or adding `--environment production` -->
+ {{ if eq hugo.Environment "production" }}
+ {{ template "_internal/google_analytics_async.html" . }}
+ {{ end }}
</head>