diff --git a/hugo.yml b/hugo.yml index 0e7101bfe..f591e9885 100644 --- a/hugo.yml +++ b/hugo.yml @@ -76,7 +76,7 @@ module: - source: node_modules/bootstrap/scss target: assets/scss/bootstrap - source: node_modules/bootstrap/dist/js/bootstrap.bundle.min.js - target: assets/js/bootstrap.bundle.min.js + target: assets/js/vendor/bootstrap.bundle.min.js params: docs_version: "5.3" diff --git a/src/layouts/partials/scripts.html b/src/layouts/partials/scripts.html index ad634fed2..624da97e1 100644 --- a/src/layouts/partials/scripts.html +++ b/src/layouts/partials/scripts.html @@ -4,7 +4,7 @@ {{- $esbuildOptions = merge $esbuildOptions (dict "minify" "true") -}} {{- end -}} -{{- $bootstrapJs := resources.Get "/js/bootstrap.bundle.min.js" | fingerprint | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}} +{{- $bootstrapJs := resources.Get "/js/vendor/bootstrap.bundle.min.js" | fingerprint | resources.Copy "/assets/js/vendor/bootstrap.bundle.min.js" -}} {{- $application := resources.Get "js/application.js" | js.Build $esbuildOptions | fingerprint | resources.Copy "/assets/js/application.js" -}}