Files
paige-hugo/layouts/partials/paige/script.html
2023-01-21 23:43:52 -08:00

7 lines
353 B
HTML

{{ $href := .href }}
{{ $integrity := .integrity }}
{{ $onload := .onload | safeJS }}
{{ $src := .src }}
<script{{ if ne $href (urls.Parse $href).Path }} crossorigin="anonymous"{{ end }} defer integrity="{{ $integrity }}"{{ with $onload }} onload="{{ . }}"{{ end }} referrerpolicy="no-referrer" src="{{ partial `paige/func-url.html` $src }}"></script>