11 lines
504 B
HTML
11 lines
504 B
HTML
{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
|
|
{{ $scripts := getJSON "assets/js/scripts.json" }}
|
|
{{ $.Scratch.Set "jslibs" slice }}
|
|
|
|
{{ range $scripts.scripts }}
|
|
{{ $.Scratch.Add "jslibs" (resources.Get . ) }}
|
|
{{ end }}
|
|
|
|
{{ $js := .Scratch.Get "jslibs" | resources.Concat "js/combined-scripts.js" | resources.Minify | fingerprint }}
|
|
<script src="{{ $js.RelPermalink }}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" crossorigin="anonymous" integrity="{{ $js.Data.Integrity }}"></script>
|