Improved drop-down filters for search
Closed this issue · 4 comments
khemarato commented
Right now, search supports type filters via a dropdown and other filters via text (e.g. "+is:music"). It would be nice to add:
- Subcats ("is:poetry", etc) (can maybe be added to the existing dropdown?)
- Authors (maybe a typeahead dropdown pulling from the _authors collection? Handling hyphens in the filter query will be tricky)
- Translator (will have to pull this list by looking at the _authors that actually have translated _content. Perhaps can be combined with the author filter above somehow)
- Rating (e.g. "status: featured" content only) This data would have to be added to the search index first, and then given a dropdown.
ColmBhandal commented
FYI started working on this: https://github.com/ColmBhandal/buddhist-uni.github.io/tree/feature/34-drop-down-filters
ColmBhandal commented
However, looks like the build isn't configured for forks. So I'm not sure how to test my changes. Please advise...
khemarato commented
Oh! Nice 🙂 To build locally, try:
npm ci
bash scripts/install-deps.bash
bundle install
bundle exec jekyll serve -tI
khemarato commented
Thanks for landing the first PR for this, @ColmBhandal! 🥳 I've updated the description with what's been done and what there's left to do.