0
0
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:
XhmikosR 2020-02-17 20:52:28 +02:00 committed by GitHub
parent 48c8697fed
commit f1e47e24c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}