mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-14 18:42:30 +03:00
scripts.html: don't load docsearch JS when it's not needed (#30205)
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
|
||||||
{{- end }}
|
{{- 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>
|
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user