mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2024-11-10 05:59:41 +00:00
10 lines
308 B
HTML
10 lines
308 B
HTML
{{ $script := resources.Get . }}
|
|
|
|
{{ if in . "min" }}
|
|
{{ $script = $script | minify | fingerprint }}
|
|
{{ else }}
|
|
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
|
|
{{ end }}
|
|
|
|
<script type="text/javascript" src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
|