itsdrike.com/layouts/partials/script.html

10 lines
308 B
HTML
Raw Normal View History

2021-08-25 17:36:37 +00:00
{{ $script := resources.Get . }}
{{ if in . "min" }}
2022-05-11 12:10:49 +00:00
{{ $script = $script | minify | fingerprint }}
2021-08-25 17:36:37 +00:00
{{ else }}
2022-05-11 12:10:49 +00:00
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
2021-08-25 17:36:37 +00:00
{{ end }}
<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>