From cf58f0e200860006e83bfb9a93fd8ad7b5fd07e4 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Fri, 27 May 2022 10:40:14 +0200 Subject: [PATCH] Add Alpine.js, will start expermimenting with this, part 2. --- layouts/partials/scripts.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index c578138..f8cf588 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,5 +1,9 @@ {{ $early := resources.Get "js/script-early.js" | minify | fingerprint -}} +{{ if $.Param "alpine" -}} +{{ $alpine := resources.Get "js/lib/alpine.min.js" | fingerprint -}} + +{{ end -}} {{ if $.Param "jquery" -}} {{ $jquery := resources.Get "js/lib/jquery.slim.min.js" | fingerprint -}}