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