Use local version of alpineJS
This commit is contained in:
parent
fe9b687a08
commit
13ae0b04e1
18
hugo.yaml
18
hugo.yaml
|
@ -232,3 +232,21 @@ module:
|
|||
hugoVersion:
|
||||
extended: true
|
||||
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
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<!-- Footer section -->
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script>
|
||||
{{ $alpineJS := resources.Get "alpinejs/dist/cdn.min.js" | js.Build "js/alpinejs.min.js" }}
|
||||
<script src="{{ $alpineJS.Permalink }}" defer></script>
|
||||
{{ $js := resources.Get "js/darkmode.js" | js.Build }}
|
||||
<script src="{{ $js.RelPermalink }}" defer></script>
|
||||
<footer class="bg-gray-900">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.5.10",
|
||||
"alpinejs": "^3.13.0",
|
||||
"alpinejs": "^3.13.1",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"concurrently": "^8.2.1",
|
||||
"postcss": "^8.4.29",
|
||||
|
|
Loading…
Reference in New Issue