{{ $jsBase := resources.Get "js/base.js" }} {{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} {{ $jsAnchor := resources.Get "js/anchor.js" }} {{ $js := (slice $jsBase $jsSearch $jsAnchor) | resources.Concat "js/main.js" }} {{ if .Site.IsServer }} {{ else }} {{ $js := $js | minify | fingerprint }} {{ end }} {{ partial "hooks/body-end.html" . }}