From 1e7074fc8382471f4d32c6185489583076335315 Mon Sep 17 00:00:00 2001 From: Konstantin Filtschew Date: Wed, 28 Jun 2023 12:39:51 +0200 Subject: [PATCH] Fixed minify and fingerprint (#48) Before minify and fingerprint was not called resulting in the stylesheet been css/styles.css, it was not minified, not compressed, and not fingerprinted. --- layouts/partials/css.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/css.html b/layouts/partials/css.html index bf2baac..0c40bae 100644 --- a/layouts/partials/css.html +++ b/layouts/partials/css.html @@ -2,6 +2,6 @@ {{- if .Site.IsServer }} {{ $styles = $styles | resources.ExecuteAsTemplate (printf "css/styles.dev.%v.css" now.UnixMilli) .}} {{ else }} -{{- $styles := $styles| minify | fingerprint | resources.PostProcess -}} +{{ $styles = $styles | minify | fingerprint | resources.PostProcess }} {{ end -}}