{{ $js := resources.Get "js/main.js" }} {{ if hugo.IsProduction }} {{ $js = $js | resources.Minify | resources.Fingerprint }} {{ end }}