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.

12 lines
490 B
HTML

{{ $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 }}
<script{{ if not $path }} crossorigin="anonymous"{{ end }} defer integrity="{{ .integrity }}"{{ with .onload }} onload="{{ . | safeJS }}"{{ end }} referrerpolicy="no-referrer" src="{{ $src }}"></script>