From 3d91be40ee32106cd8a775e6944b62c970d6efce Mon Sep 17 00:00:00 2001
From: Paaz CA <31186542+paazca@users.noreply.github.com>
Date: Sat, 5 Dec 2020 13:53:20 +0200
Subject: [PATCH 1/2] Update site_head.html
---
wowchemy/layouts/partials/site_head.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html
index 188441a13..180ffb186 100644
--- a/wowchemy/layouts/partials/site_head.html
+++ b/wowchemy/layouts/partials/site_head.html
@@ -151,7 +151,7 @@
{{ $sass_template := resources.Get "scss/main.scss" }}
{{ $style := $sass_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $css_options }}
{{ $style := slice $css_bundle_head $style | resources.Concat "css/wowchemy.css" }}
- {{- if (eq (getenv "HUGO_ENV") "production") -}}
+ {{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}}
{{- $style = $style | minify | fingerprint "md5" -}}
{{- end -}}
From 990a7afbb770c3b15591a5992ea07301fe954797 Mon Sep 17 00:00:00 2001
From: Geo
Date: Sat, 5 Dec 2020 20:23:11 +0000
Subject: [PATCH 2/2] Update site_head.html
---
wowchemy/layouts/partials/site_head.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/wowchemy/layouts/partials/site_head.html b/wowchemy/layouts/partials/site_head.html
index 180ffb186..2fdfd758e 100644
--- a/wowchemy/layouts/partials/site_head.html
+++ b/wowchemy/layouts/partials/site_head.html
@@ -145,13 +145,13 @@
{{ $css_comment := printf "/*!* Wowchemy v%s (https://wowchemy.com/) */\n" site.Data.wowchemy.version }}
{{ $css_bundle_head := $css_comment | resources.FromString "css/bundle-head.css" }}
{{ $css_options := dict "targetPath" "css/wowchemy.css" }}
- {{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}}
+ {{- if eq hugo.Environment "production" -}}
{{- $css_options = merge $css_options (dict "outputStyle" "compressed") -}}
{{- end -}}
{{ $sass_template := resources.Get "scss/main.scss" }}
{{ $style := $sass_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $css_options }}
{{ $style := slice $css_bundle_head $style | resources.Concat "css/wowchemy.css" }}
- {{- if (in (slice (getenv "HUGO_ENV") hugo.Environment) "production") -}}
+ {{- if eq hugo.Environment "production" -}}
{{- $style = $style | minify | fingerprint "md5" -}}
{{- end -}}