From 34881f6f0e5ad8defc1a5e64cd5e12a9d4ce97b3 Mon Sep 17 00:00:00 2001 From: Yuta Nagamiya Date: Thu, 3 Jun 2021 04:25:11 +0900 Subject: [PATCH] Fix a bug Fix a bug that CSS is not processed correctly when `ananke_process_css = true` and `HUGO_ENV=production`. --- layouts/partials/site-style.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/site-style.html b/layouts/partials/site-style.html index d2c25e4..ad91056 100644 --- a/layouts/partials/site-style.html +++ b/layouts/partials/site-style.html @@ -9,7 +9,7 @@ {{ $style := . | resources.ToCSS $options | resources.PostCSS (dict "use" "postcss-cssnext") | minify }} {{/* We fingerprint in production to ensure cache busting */}} {{ if eq (getenv "HUGO_ENV") "production" }} - {{ $style = . | fingerprint }} + {{ $style = $style | fingerprint }} {{ end }} {{ with $style }} @@ -24,4 +24,4 @@ {{ range .Site.Params.custom_css }} -{{ end }} \ No newline at end of file +{{ end }}