CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.51k stars 115 forks source link

Add templates for filter pills? #271

Open eskwayrd opened 1 year ago

eskwayrd commented 1 year ago

I've made a lot of progress customizing the results interface, based on the Modular UI, by taking advantage of the ResultList.resultTemplate() call.

Would it be possible to add a similar template mechanism to the filter pills?

The metadata that I add to my indexes are identifiers that I'd like to translate to human-readable text. The text is notably longer than the identifiers and I'd prefer to avoid storing the text in the index.

bglw commented 1 year ago

This is a good call! That could definitely be exposed, I'll wire that up.