{{ $name := urlize .Title }} {{ with .Slug }} {{ $name = . }} {{ end }}

...

{{ if hugo.IsProduction }} {{ $site := resources.Get "js/voting.js" }} {{ if hugo.IsProduction }} {{ $site = $site | minify | fingerprint | resources.PostProcess }} {{ end }} {{ else }}

debug: {{ $name }}

{{ end }}