aboutsummaryrefslogtreecommitdiff
path: root/_includes/docs-sidebar.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2018-03-14 19:44:32 +0200
committerXhmikosR <[email protected]>2018-03-14 21:06:17 +0200
commitb9577a1cf7277b7e7854c3b4ea009e2fed6ea242 (patch)
tree59dc10a85c4f1af1d8e872d0c385f05db313d3e8 /_includes/docs-sidebar.html
parent483e49e3c6784f4afbc9982c3498151f6f97ee30 (diff)
downloadbootstrap-b9577a1cf7277b7e7854c3b4ea009e2fed6ea242.tar.xz
bootstrap-b9577a1cf7277b7e7854c3b4ea009e2fed6ea242.zip
Alternative solution.
Rely on `site.url` which is different for production. In that case do nothing with the search result, otherwise when in development remove our url from it.
Diffstat (limited to '_includes/docs-sidebar.html')
-rw-r--r--_includes/docs-sidebar.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/docs-sidebar.html b/_includes/docs-sidebar.html
index 3e82a8b21..c0a0982bc 100644
--- a/_includes/docs-sidebar.html
+++ b/_includes/docs-sidebar.html
@@ -1,5 +1,5 @@
<form class="bd-search d-flex align-items-center">
- <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-baseurl="{{ site.baseurl }}/docs/{{ site.docs_version }}">
+ <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-siteurl="{{ site.url }}">
<button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
{%- include icons/menu.svg width="30" height="30" -%}
</button>