From fa51177f055b855cb0015272a7b9611e3710a6f4 Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Sat, 15 Apr 2017 10:12:59 -0400 Subject: [PATCH] add site params to env check in head --- layouts/_default/baseof.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3abc56c..337ac7b 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -11,7 +11,7 @@ {{ .Hugo.Generator }} {{/* NOTE: For Production make sure you add `HUGO_ENV="production"` before your build command */}} - {{ if eq (getenv "HUGO_ENV") "production" }} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ else }} @@ -25,7 +25,7 @@ {{- template "_internal/schema.html" . -}} {{- template "_internal/twitter_cards.html" . -}} - {{ if eq (getenv "HUGO_ENV") "production" }} + {{ if eq (getenv "HUGO_ENV") "production" | or (eq .Site.Params.env "production") }} {{ template "_internal/google_analytics_async.html" . }} {{ end }}