Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/site
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2019-07-17 16:05:56 +0300
committerGitHub <noreply@github.com>2019-07-17 16:05:56 +0300
commite864f65789ed5847b29f31a21e493dd8bef1490b (patch)
tree2331544c6fd798babab5de5bc64176acbe4b0389 /site
parentb81a3e8b3c62a0097b98c6fd8a70c46329a24bf8 (diff)
Fix docs search. (#29067)
Diffstat (limited to 'site')
-rw-r--r--site/layouts/partials/scripts.html2
-rw-r--r--site/layouts/partials/stylesheet.html4
2 files changed, 2 insertions, 4 deletions
diff --git a/site/layouts/partials/scripts.html b/site/layouts/partials/scripts.html
index e2f9bc407e..4b909e0e48 100644
--- a/site/layouts/partials/scripts.html
+++ b/site/layouts/partials/scripts.html
@@ -4,7 +4,7 @@
<script src="/docs/{{ .Site.Params.docs_version }}/dist/js/bootstrap.bundle.js"></script>
{{- end }}
-{{ if eq .Page.Layout "docs" -}}
+{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
{{- end }}
diff --git a/site/layouts/partials/stylesheet.html b/site/layouts/partials/stylesheet.html
index 749a3314e6..d6d95ae6bf 100644
--- a/site/layouts/partials/stylesheet.html
+++ b/site/layouts/partials/stylesheet.html
@@ -5,12 +5,10 @@
<link href="/docs/{{ .Site.Params.docs_version }}/dist/css/bootstrap.css" rel="stylesheet">
{{- end }}
-{{ if (or (eq .Page.Layout "docs") (ne .Page.Layout "examples")) -}}
+{{ if (or (eq .Page.Layout "docs") (eq .Page.Layout "single")) -}}
{{- "<!-- Documentation extras -->" | safeHTML }}
-{{ if eq .Page.Layout "docs" -}}
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet">
{{- end -}}
{{- if (ne .Page.Layout "examples") }}
<link href="/docs/{{ .Site.Params.docs_version }}/assets/css/docs.min.css" rel="stylesheet">
-{{- end -}}
{{- end }}