diff options
| author | XhmikosR <[email protected]> | 2015-08-26 19:14:59 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-08-28 14:28:47 +0300 |
| commit | 3fef66eaf582157122b9eede4df9cea77c2195ec (patch) | |
| tree | 3afdaf286b4c6ab7bad0b071df0e73ff24273553 /docs/_includes | |
| parent | 232469549c9a9b6082b311f568556d99ea03af2f (diff) | |
| download | bootstrap-3fef66eaf582157122b9eede4df9cea77c2195ec.tar.xz bootstrap-3fef66eaf582157122b9eede4df9cea77c2195ec.zip | |
Fix the JS errors due to jekyll-search.
1) Update it to v1.0.8
2) Include jekyll-search where it's used only
[ci skip]
Diffstat (limited to 'docs/_includes')
| -rw-r--r-- | docs/_includes/footer.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index f02cd4ba7..429056ff3 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -31,15 +31,21 @@ <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <script src="{{ site.baseurl }}/assets/js/ie10-viewport-bug-workaround.js"></script> +{% if page.layout == "docs" %} +<script src="{{ site.baseurl }}/assets/js/vendor/jekyll-search.js"></script> + <script> SimpleJekyllSearch.init({ searchInput: document.getElementById('search-input'), resultsContainer: document.getElementById('search-results'), searchResultTemplate: '<a class="dropdown-item" href="{url}">{title}</a>', noResultsText: '<div class="dropdown-item no-results">Sorry, there are no results for that search.</div>', - dataSource: '/search.json' + json: '/search.json' }) +</script> +{% endif %} +<script> Holder.addTheme('gray', { background: '#777', foreground: 'rgba(255,255,255,.75)', |
