]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
scripts.html: don't load docsearch JS when it's not needed (#30205)
authorXhmikosR <xhmikosr@gmail.com>
Mon, 17 Feb 2020 18:52:28 +0000 (20:52 +0200)
committerGitHub <noreply@github.com>
Mon, 17 Feb 2020 18:52:28 +0000 (20:52 +0200)
site/layouts/partials/scripts.html

index a0295741c66e7dc6584001bcba9b15005f9de3bc..e458d47e2d211c10a76bb8620107ec7a87abfc9d 100644 (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 }}