Searching on a static website? Yep, it can be done easily. The only things you need is a static database and a searching algorithm. This description describes the necessary steps to create a lightning fast good looking search system for your Jekyll based site. The method is also compatible with GitHubPages.
- Copy
jekyll-search.js
orjekyll-search.min.js
to your scripts folder. - Include the copied script like I do in the
template.html
file. - Add the html skeleton to your page anywhere you want the search field to appear.
- Copy the provided CSS rules if you want the exact same look otherwise create your own rules based on the provided ones.
- Copy the
search.json
file to your root folder of your site, and change it according to your needs.
Congratulations, you have just created a custom search system for your Jekyll site.
This project is under the MIT license. See the included license file for further details.