Skip to content

Commit

Permalink
Update scripts.html
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 11, 2024
1 parent 00724d5 commit b6d6ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
{{- $bootstrapJs := resources.Get "/js/bootstrap.bundle.min.js" | fingerprint | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}}
<script async src="{{ $bootstrapJs.Permalink | relURL }}"></script>

{{- $lazyload := resources.Get "js/lazyload.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/lazyload.js" -}}
{{- $application := resources.Get "js/application.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/application.js" -}}
{{- $lazyload := resources.Get "js/lazyload.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/lazyload.js" }}

<script async src="{{ $lazyload.Permalink | relURL }}"></script>
<script async src="{{ $application.Permalink | relURL }}"></script>
<script async src="{{ $lazyload.Permalink | relURL }}"></script>

{{ range .Page.Params.extra_js -}}
<script{{ with .async }} async{{ end }} src="{{ .src }}"{{ with .integrity }} {{ printf "integrity=%q" . | safeHTMLAttr }} crossorigin="anonymous"{{ end }}></script>
Expand Down

0 comments on commit b6d6ab2

Please sign in to comment.