From 17505c4581cd43210579b26dd3e01952ce9682d8 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 22 Mar 2021 00:47:45 +0000 Subject: [PATCH] refactor: Bootstrap JS URI Rename URI as GitHub Pages doesn't automatically publish folders with underscores. Netlify was unaffected. See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2201#discussioncomment-508553 --- wowchemy/layouts/partials/site_js.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wowchemy/layouts/partials/site_js.html b/wowchemy/layouts/partials/site_js.html index 98982941..d3fea22d 100644 --- a/wowchemy/layouts/partials/site_js.html +++ b/wowchemy/layouts/partials/site_js.html @@ -102,7 +102,8 @@ {{end}} - {{ $js_bootstrap := resources.Get "js/_vendor/bootstrap.bundle.min.js" }} + {{/* Rename as GitHub Pages doesn't automatically publish folders with underscores. */}} + {{ $js_bootstrap := slice (resources.Get "js/_vendor/bootstrap.bundle.min.js") | resources.Concat "js/bootstrap.bundle.min.js" }} {{- if hugo.IsProduction -}} {{ $js_bootstrap = $js_bootstrap | fingerprint "md5" }}{{/* Note: no `minify` as using pre-minified JS. */}} {{- end -}}