Search
Documentation Estimated reading time: ~1 minutes
BluestNight offers client-side searching powered by Lunr.js. This searching is powered by a JSON index of your site’s content pages - this does not include any list pages, even ones customized using _index.md
. Results are displayed as you type, allowing users to quickly find what they are looking for.
Setup
Set search
to true
under Params.widgets
and add "JSON"
to the output types for home
in your site’s configuration file.
# In config.toml
[Params.widgets]
search = true
[outputs]
home = ["HTML", "CSS", "RSS", "JSON"]