buddhist-uni/buddhist-uni.github.io

Improved drop-down filters for search

Closed this issue · 4 comments

Right now, search supports type filters via a dropdown and other filters via text (e.g. "+is:music"). It would be nice to add:

  1. Subcats ("is:poetry", etc) (can maybe be added to the existing dropdown?)
  2. Authors (maybe a typeahead dropdown pulling from the _authors collection? Handling hyphens in the filter query will be tricky)
  3. 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)
  4. Rating (e.g. "status: featured" content only) This data would have to be added to the search index first, and then given a dropdown.

However, looks like the build isn't configured for forks. So I'm not sure how to test my changes. Please advise...

Oh! Nice 🙂 To build locally, try:

npm ci
bash scripts/install-deps.bash
bundle install
bundle exec jekyll serve -tI

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.