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