From 6a8f9511aab13ae1096941ae3448a5f260c5ea6e Mon Sep 17 00:00:00 2001
From: Regis Philibert <login@regisphilibert.com>
Date: Thu, 17 Jun 2021 13:21:34 +0000
Subject: [PATCH] Fix resource transformation
---
layouts/partials/func/style/GetMainCSS.html | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/layouts/partials/func/style/GetMainCSS.html b/layouts/partials/func/style/GetMainCSS.html
index ef33b1d..7261dae 100644
--- a/layouts/partials/func/style/GetMainCSS.html
+++ b/layouts/partials/func/style/GetMainCSS.html
@@ -41,7 +41,7 @@
{{ $style = $style | resources.ToCSS $options | minify }}
{{/* We fingerprint in production for cache busting purposes */}}
{{ if eq (getenv "HUGO_ENV") "production" }}
- {{ $style = . | fingerprint }}
+ {{ $style = $style | fingerprint }}
{{ end }}
{{/* We're ready to set returning variable with resulting resource */}}
{{ $main_style = $style }}
--
Gitblit v1.10.0