From 13ae0b04e14d1e3629f316bf6224c29f6ba0a2b9 Mon Sep 17 00:00:00 2001 From: Tobias Date: Tue, 3 Oct 2023 17:08:46 +0200 Subject: [PATCH] Use local version of alpineJS --- hugo.yaml | 20 +++++++++++++++++++- layouts/partials/footer.html | 3 ++- package.json | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/hugo.yaml b/hugo.yaml index 1610483..71cc2db 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -231,4 +231,22 @@ privacy: module: hugoVersion: extended: true - min: "0.104.0" \ No newline at end of file + min: "0.104.0" + mounts: + - source: content + target: content + - source: static + target: static + - source: layouts + target: layouts + - source: data + target: data + - source: assets + target: assets + - source: node_modules + included_files: "*/alpinejs/dist/*" + target: assets + - source: i18n + target: i18n + - source: archetypes + target: archetypes diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 629ba17..49a477f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,6 @@ - +{{ $alpineJS := resources.Get "alpinejs/dist/cdn.min.js" | js.Build "js/alpinejs.min.js" }} + {{ $js := resources.Get "js/darkmode.js" | js.Build }}