mirror of
https://github.com/ItsDrike/itsdrike.com.git
synced 2025-06-29 16:10:43 +00:00
Add bootstrap JS
This commit is contained in:
parent
3610b7a8d9
commit
a82ab80745
3 changed files with 15 additions and 1 deletions
9
layouts/partials/script_async.html
Normal file
9
layouts/partials/script_async.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ $script := resources.Get . }}
|
||||
|
||||
{{ if in . "min" }}
|
||||
{{ $script = $script | minify | fingerprint }}
|
||||
{{ else }}
|
||||
{{ $script = $script | js.Build (dict "minify" true) | fingerprint }}
|
||||
{{ end }}
|
||||
|
||||
<script type="text/javascript" async src="{{ $script.RelPermalink }}" integrity="{{ $script.Data.Integrity }}"></script>
|
Loading…
Add table
Add a link
Reference in a new issue