mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-14 08:17:37 +00:00
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:
1 parent
0eae617819
commit
17505c4581
1 file changed
+2
-1
@@ -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 -}}
|
||||
|
||||
Reference in new issue
Block a user