From 50aa3f8d5553fdbd0e05db7a2c3351d1d593af29 Mon Sep 17 00:00:00 2001 From: Florian La Roche Date: Wed, 6 May 2020 03:05:09 +0200 Subject: [PATCH] feat(layout): minify script (#258) Patch taken from https://github.com/sdvcrx/hugo-theme-even/commit/60633a072ea1cf3b0cd268b986d27bc5dd6ca5d1 --- layouts/partials/scripts.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 18b0e30..5a705da 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -69,7 +69,7 @@ {{- end }} {{ $even := resources.Get "js/even.js" }} {{ $main := resources.Get "js/main.js" }} -{{ $js := slice $even $main | resources.Concat "js/main.js" | fingerprint }} +{{ $js := slice $even $main | resources.Concat "js/main.js" | minify | fingerprint }} {{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}