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 -}}