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
This commit is contained in:
George Cushen committed 2021-03-22 00:47:51 +00:00
1 parent 0eae617819
commit 17505c4581
1 file changed
+2 -1
+2 -1
View File
@@ -102,7 +102,8 @@
<script id="dsq-count-scr" src="https://{{site.Params.comments.disqus.shortname}}.disqus.com/count.js" async></script>
{{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 -}}