2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-02 16:04:07 +03:00

basic docs search

This commit is contained in:
Mark Otto
2014-12-24 02:44:38 -08:00
parent 952be04cb0
commit 73e59c26e6
8 changed files with 70 additions and 5 deletions
+7
View File
@@ -147,6 +147,13 @@
.tooltip('show')
})
SimpleJekyllSearch.init({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'),
searchResultTemplate: '<li><a href="{url}">{title}</a></li>',
dataSource: '/search.json'
})
})
}(jQuery)