diff --git a/themes/ccchh/layouts/partials/head.html b/themes/ccchh/layouts/partials/head.html index 2107397..6f0fd83 100644 --- a/themes/ccchh/layouts/partials/head.html +++ b/themes/ccchh/layouts/partials/head.html @@ -1,4 +1,5 @@ {{- $options := dict "transpiler" "libsass" "targetPath" "css/style.css" -}} +{{- $jsResources := resources.Match "js/*.js" }} @@ -10,9 +11,11 @@ {{- end }} - {{ with resources.Get "js/roomstate.js" | js.Build | minify | fingerprint -}} + {{- range $jsResources }} + {{- with . | js.Build | minify | fingerprint }} {{- end }} + {{- end }} {{ range .AlternativeOutputFormats -}} {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}