From 95be508e279684da66a6dc089563c5492c579ef6 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 7 May 2022 16:44:24 -0600 Subject: [PATCH] layout/default: use Hugo to bundle the JS files --- layouts/_default/baseof.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 4bb1213..b6c1303 100755 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -101,7 +101,8 @@ - + {{ $mainJs := resources.Match "js/**.js" | resources.Concat "js/script.js" | minify | fingerprint }} + {{- block "scripts" . }}{{- end }} {{- if eq (getenv "HUGO_ENV") "PRD" }}