aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian La Roche <florian.laroche@gmail.com>2020-05-06 03:05:09 +0200
committerGitHub <noreply@github.com>2020-05-06 09:05:09 +0800
commit50aa3f8d5553fdbd0e05db7a2c3351d1d593af29 (patch)
tree508ca552a08a4da9ee8f3dd864165cba5338f5ec
parent18fa0b5290ea9c45757996e083f43c5fcc20d944 (diff)
feat(layout): minify script (#258)
Patch taken from https://github.com/sdvcrx/hugo-theme-even/commit/60633a072ea1cf3b0cd268b986d27bc5dd6ca5d1
-rw-r--r--layouts/partials/scripts.html2
1 files changed, 1 insertions, 1 deletions
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 }}
<script type="text/javascript" src="{{ $js.RelPermalink }}"></script>
{{- if and (or .Params.mathjax (and .Site.Params.mathjax (ne .Params.mathjax false))) (or .IsPage .IsHome) }}