From bfd78179c6f189556ba81520ba63fbf2047b5177 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 29 Sep 2023 09:25:19 +0200 Subject: [PATCH] Use js.Build for minify in math partial. --- layouts/partials/math.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layouts/partials/math.html b/layouts/partials/math.html index 6c6c05e..51f8b5f 100644 --- a/layouts/partials/math.html +++ b/layouts/partials/math.html @@ -1,7 +1,11 @@ +{{ $opts := dict "minify" true -}} +{{ if eq hugo.Environment "development" -}} + {{ $opts = merge $opts (dict "minify" false) -}} +{{ end -}} {{ if or ($.Param "math") (.Page.Store.Get "math") (.HasShortcode "math") -}} -{{ $math := resources.Get "js/math.js" | minify | fingerprint -}} +{{ $math := resources.Get "js/math.js" | js.Build $opts | fingerprint -}} {{ end -}}