{{ $bootstrap := resources.Get "js/bootstrap.js" }} {{ $params := dict }} {{ $sourceMap := cond hugo.IsProduction "" "inline" }} {{ $opts := dict "sourceMap" $sourceMap "target" "es2018" "params" $params }} {{ $bootstrap = $bootstrap | js.Build $opts }} {{ if hugo.IsProduction }} {{ $bootstrap = $bootstrap | fingerprint "sha512" }} {{ end }} {{ $scripts := slice }} {{ range site.Params.plugins.js }} {{ if findRE "^http" .link }} {{ else }} {{ $scripts = $scripts | append (resources.Get .link) }} {{ end }} {{ end }} {{ $scripts = $scripts | append (resources.Get "js/script.js") }} {{ $scripts = $scripts | resources.Concat "js/scripts.js" }} {{ if hugo.IsProduction }} {{ $scripts = $scripts | fingerprint "sha512" }} {{ end }} {{ $pf:= site.Params.variables.font_primary }} {{ $sf:= site.Params.variables.font_secondary }}