You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
348 B
HTML
13 lines
348 B
HTML
{{ $url := . }}
|
|
{{ if eq $url (urls.Parse $url).Path }}
|
|
{{ with resources.Get (relLangURL $url) }}
|
|
{{ if ne .ResourceType "image" }}
|
|
{{ $url = $url | minify }}
|
|
{{ end }}
|
|
{{ $url = (. | fingerprint).RelPermalink }}
|
|
{{ else }}
|
|
{{ $url = relLangURL $url }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ return $url }}
|