Basic Jekyll setup with search via lunr.js and JSON.
| Version no. | Description | Date |
|---|---|---|
| 1.1 | Updated lunr.js to 2.0.0 |
14 April 2017 |
| 1.0 | Jekyll Search with lunr.js | 26 Septeber 2016 |
| 0.3 | Support for collections | 13 March 2014 |
| 0.2.1 | Used built-in jsonify filter (thanks to davekinkead) | 25 September 2014 |
| 0.2 | Used built-in ruby JSON (thanks to mrvdb) | 20th May 2014 |
| 0.1 | First draft | 24th February 2014 |
Use on an existing Jekyll installation (http://jekyllrb.com/)
- Place
_plugins,feeds,searchandscriptsdirectories in root of jekyll installation - Add
url: http://example.comto_config.yml
- To omit a page or post from search add
search_omit: trueto YAML Front Matter
- To run locally use local domain as url in
_config.ymle.g.url: http://localhost:4000 - jQuery library is included in
/search/index.html- Remove if not needed, or move to<head>if preferred