Browse Source

hotfix for latest hugo

Xi Ruoyao 2 years ago
parent
commit
ac4debd065
1 changed files with 2 additions and 2 deletions
  1. 2 2
      wowchemy/layouts/partials/site_head.html

+ 2 - 2
wowchemy/layouts/partials/site_head.html

@@ -204,13 +204,13 @@
     {{- $style = $style | minify -}}
   {{- end -}}
   {{ $style := slice $css_bundle_head $style | resources.Concat "css/wowchemy.css" }}
-  {{- if eq (getenv "WC_POST_CSS") "true" -}}
+  {{- if eq (getenv "HUGO_WC_POST_CSS") "true" -}}
     {{- $style = $style | postCSS -}}
   {{- end -}}
   {{- if hugo.IsProduction -}}
     {{- $style = $style | fingerprint "md5" -}}
   {{- end -}}
-  {{- if eq (getenv "WC_POST_CSS") "true" -}}
+  {{- if eq (getenv "HUGO_WC_POST_CSS") "true" -}}
     {{/* PostProcess must be last action in the pipeline */}}
     {{- $style = $style | resources.PostProcess -}}
   {{- end -}}