I modified from eleventy-search-demo with many fixed bugs and new features (I've asked for a pull request but the author didn't answer me! So I decide to make a different repository with my customization).
👉 Demo: <eleventy-elasticlunr-js.netlify.app>
📌 Features:
- Using Elasticlunrjs for a client search site.
- Instant search (search when you type keywords, change with key hit).
- Flexible trigger keyboards (Arrow keys, Tab key, ESC).
- Quick key to focused (
/
like on Youtube, can be customized). - Handle focused element.
- Only show result when available.
- Highlight keywords in the result search.
- ...and many more.
🚀 Build and run:
npm install # first time only
npm run build # build project
npm run dev # build and watch
Movie data from TheMovieDB.