dinhanhthi / eleventy-elasticlunr-js

A demo of search function in eleventy website using Elasticlunr.js.

Home Page:https://eleventy-elasticlunr-js.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eleventy ElasticlunrJS

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:

  1. Using Elasticlunrjs for a client search site.
  2. Instant search (search when you type keywords, change with key hit).
  3. Flexible trigger keyboards (Arrow keys, Tab key, ESC).
  4. Quick key to focused (/ like on Youtube, can be customized).
  5. Handle focused element.
  6. Only show result when available.
  7. Highlight keywords in the result search.
  8. ...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.

About

A demo of search function in eleventy website using Elasticlunr.js.

https://eleventy-elasticlunr-js.netlify.app


Languages

Language:JavaScript 48.6%Language:CSS 23.6%Language:SCSS 15.2%Language:Nunjucks 12.6%