{#
Search Component
Full-featured client-side search powered by Lunr.js with filters and keyboard shortcuts.
Variables:
- site: Site object (for site title)
Features:
- Client-side full-text search with Lunr.js
- Real-time search as you type (debounced)
- Keyboard shortcuts (Cmd/Ctrl + K to focus, Escape to clear)
- Advanced filtering (section, type, tags)
- Result highlighting and grouping
- Loading and error states
- Accessible with ARIA attributes
- Responsive design
Dependencies:
- JavaScript: /assets/js/lunr.min.js (loaded in base.html)
- JavaScript: /assets/js/search.js (BengalSearch module, loaded in base.html)
- Search Index: /index.json (generated during build)
Note:
This component includes inline