From 6dd2030dfe4e8943c29aac32245ff3fc40da88ee Mon Sep 17 00:00:00 2001 From: nanxiaobei Date: Tue, 24 Aug 2021 19:10:32 +0800 Subject: [PATCH] fix condition --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 75e1335..b2aaef6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -57,7 +57,7 @@ {{ end }} - {{ if hugo.IsProduction | eq site.Params.env "production" }} + {{ if or hugo.IsProduction (eq site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }}