diff options
| author | XhmikosR <[email protected]> | 2015-08-29 23:59:10 +0300 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2015-08-29 23:59:10 +0300 |
| commit | 647ad1cbed3936d950a1cc7f540d63b61972d4ef (patch) | |
| tree | 2ad43eeb31764d26bb64cac4830d7e6223e7e66f /docs/_includes | |
| parent | d7a62d52f636642d0a46acd9d6cd4f6686e86611 (diff) | |
| parent | 3fef66eaf582157122b9eede4df9cea77c2195ec (diff) | |
| download | bootstrap-647ad1cbed3936d950a1cc7f540d63b61972d4ef.tar.xz bootstrap-647ad1cbed3936d950a1cc7f540d63b61972d4ef.zip | |
Merge pull request #17384 from twbs/v4-dev-xmr-jekyll-search
Fix the JS errors due to jekyll-search.
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)', |
