Skip to content

Commit 47e5d80

Browse files
chalindseynaev
authored andcommitted
Scripts: get Popper from Bootstrap bundle (google#1268)
1 parent d9b7721 commit 47e5d80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

layouts/partials/scripts.html

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
{{ printf "onload='renderMathInElement(%s, %s);'" (( .Site.Params.katex.html_dom_element | default "document.body" ) | safeJS ) ( printf "%s" ( $.Site.Params.katex.options | jsonify )) | safeHTMLAttr }}></script>
4949
{{ end -}}
5050

51-
{{ $jsPopper := resources.GetRemote "https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.js" -}}
52-
{{ $jsBs := resources.Get "vendor/bootstrap/dist/js/bootstrap.js" -}}
51+
{{ $jsBs := resources.Get "vendor/bootstrap/dist/js/bootstrap.bundle.js" -}}
5352
{{ $jsBase := resources.Get "js/base.js" -}}
5453
{{ $jsAnchor := resources.Get "js/anchor.js" -}}
5554
{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home -}}
@@ -60,7 +59,7 @@
6059
{{ if .Site.Params.offlineSearch -}}
6160
{{ $jsSearch = resources.Get "js/offline-search.js" -}}
6261
{{ end -}}
63-
{{ $js := (slice $jsPopper $jsBs $jsBase $jsAnchor $jsSearch $jsMermaid $jsPlantuml $jsMarkmap $jsDrawio) | resources.Concat "js/main.js" -}}
62+
{{ $js := (slice $jsBs $jsBase $jsAnchor $jsSearch $jsMermaid $jsPlantuml $jsMarkmap $jsDrawio) | resources.Concat "js/main.js" -}}
6463
{{ if hugo.IsProduction -}}
6564
{{ $js := $js | minify | fingerprint -}}
6665
<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}" crossorigin="anonymous"></script>

0 commit comments

Comments
 (0)