From f91e48e02656405fb9359f887dc9158f1cce27a1 Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Tue, 11 Jun 2019 03:29:55 +0800 Subject: [PATCH] Refine head --- layouts/partials/header.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e50da7a..2098e2c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -31,6 +31,7 @@ {{ hugo.Generator }} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }} {{ end }}