{{ $bootstrap := resources.Get "js/bootstrap/bootstrap.bundle.min.js" }} {{ $js := resources.Get "js/main.js" }} {{ if eq (hugo.Environment) "development" -}} {{ if .Site.Params.options.bootStrapJs -}} {{ end -}} {{ with $js }} {{ end -}} {{ else -}} {{ if .Site.Params.options.bootStrapJs -}} {{ $bootstrap := $bootstrap | minify | fingerprint "sha512" -}} {{ end -}} {{ with $js }} {{ $js := . | minify | fingerprint "sha512" -}} {{ end }} {{end}}