mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
scripts.html: don't load docsearch JS when it's not needed (#30205)
This commit is contained in:
parent
48c8697fed
commit
f1e47e24c3
@ -4,7 +4,7 @@
|
||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||
{{- end }}
|
||||
|
||||
{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
|
||||
{{ if eq .Page.Layout "docs" -}}
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||
{{- end }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user