Merge branch 'fix-script' into cleanup

This commit is contained in:
Jens M. Sauer 2024-07-28 21:18:33 +02:00
commit 1bc0ae13f8

View File

@ -1,3 +1,11 @@
{{ with resources.Match "js/*" | resources.Concat "js/bundle.js" | minify | fingerprint }} {{ $jQuery := resources.Get "js/jquery.min.js" }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> {{ $scrollex := resources.Get "js/jquery.scrollex.min.js" }}
{{ end }} {{ $scrolly := resources.Get "js/jquery.scrolly.min.js" }}
{{ $browser := resources.Get "js/browser.min.js" }}
{{ $breakpoints := resources.Get "js/breakpoints.min.js" }}
{{ $util := resources.Get "js/util.js" }}
{{ $main := resources.Get "js/main.js" }}
{{ $demo := resources.Get "js/demo.js" }}
{{ $js := slice $jQuery $scrollex $scrolly $browser $breakpoints $util $main $demo | resources.Concat "js/bundle.js" | minify | fingerprint }}
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" async crossorigin="anonymous"></script>