{{ $path := false }} {{ $src := .src }} {{ if eq $src (urls.Parse $src).Path }} {{ $path = true }} {{ with resources.Get (relLangURL $src) }} {{ $src = (. | minify | fingerprint).RelPermalink }} {{ else }} {{ $src = relLangURL $src }} {{ end }} {{ end }}