diff --git a/themes/nluug/layouts/partials/scripts_loadlast.html b/themes/nluug/layouts/partials/scripts_loadlast.html index 5289bd8..2508610 100644 --- a/themes/nluug/layouts/partials/scripts_loadlast.html +++ b/themes/nluug/layouts/partials/scripts_loadlast.html @@ -1,6 +1,6 @@ -{{ $assetBusting := not .Site.Params.disableAssetsBusting }} -{{ $scripts := getJSON "assets/js/scripts.json" }} {{ $.Scratch.Set "jslibs" slice }} +{{ $assetBusting := not .Site.Params.disableAssetsBusting }} +{{ $scripts := resources.Get "js/scripts.json" | unmarshal }} {{ range $scripts.scripts }} {{ $.Scratch.Add "jslibs" (resources.Get . ) }}