js.Build minify

This commit is contained in:
Carmen Ngaka Iziasuma 2024-01-19 16:43:07 +01:00
parent 92b5c9c0f9
commit 1034cc2556
2 changed files with 3 additions and 3 deletions

View File

@ -84,10 +84,10 @@
{{ end }}
{{ define "scripts"}}
{{ $picsCarousel := resources.Get "js/index-pics-carousel.js" | js.Build }}
{{ $picsCarousel := resources.Get "js/index-pics-carousel.js" | js.Build dict "minify" true }}
<script src="{{ $picsCarousel.RelPermalink }}"></script>
{{ $newsCarousel := resources.Get "js/index-news-carousel.js" | js.Build }}
{{ $newsCarousel := resources.Get "js/index-news-carousel.js" | js.Build dict "minify" true }}
<script src="{{ $newsCarousel.RelPermalink }}"></script>
<script type="application/ld+json">

View File

@ -150,7 +150,7 @@
{{ end }}
{{ define "scripts" }}
{{ $carousel := resources.Get "js/single-spectacle-carousel.js" | js.Build }}
{{ $carousel := resources.Get "js/single-spectacle-carousel.js" | js.Build dict "minify" true}}
<script src="{{ $carousel.RelPermalink}}"></script>