{{ $main := resources.Get "js/main.js" }} {{ $bootstrap := resources.Get "js/bootstrap.bundle.min.js" }} {{ $secureJS := slice $main $bootstrap | resources.Concat "bundle.js" | resources.Minify }} {{ range $val := $.Site.Params.customJS }} {{ if gt (len $val) 0 }} {{ end }} {{ end }}