Home
Search
Learn about the full-text search feature included by default with Illuminate.
Overview
Search on Illuminate is powered by Pagefind, a powerful full-text search library designed for static sites, and paired with a custom interface that supports keyboard interaction. This combination ensures users can quickly find the information they need while providing an accessible, user-friendly experience.
Indexing content
Pagefind indexes your site's content at build time, creating a static search bundle that can be queried directly from the client side. To build and index your site, use the following command:
Excluding content
To exclude content contained within any special components, such as code blocks,
tag the component with the data-pagefind-ignore
attribute.
To exclude Markdown content that is not contained within a special component,
wrap the content with a div
element, and then add the data-pagefind-ignore
attribute to the div
.
Keyboard support
The search interface supports keyboard interaction to toggle the search modal, select results, and navigate to a result for accessibility and efficiency.
Key | Function |
---|---|
Cmd/Ctrl + K | Open the search modal |
ArrowDown | Selects the next search result |
ArrowUp | Selects the previous search result |
Enter | Navigates to the selected search result |
Esc | Closes the search modal |