Pinjasaur / bic-example

Example repository for `bic`
https://demo.bic.sh/
0 stars 1 forks source link

Try out pagefind.app #8

Closed Pinjasaur closed 1 month ago

Pinjasaur commented 1 year ago

Found out about https://pagefind.app/ and it looks slick. Should be pretty easy to try out on the demo site. Only real config necessary is not indexing drafts.

Pinjasaur commented 1 month ago

Omitting drafts from the index isn't as easy as I would hope for.

The globbing that pagefind does doesn't support negations in the way that most globbing libraries work. https://pagefind.app/docs/config-options/#glob

Probably just opt to dynamically add the data-pagefind-body and can omit drafts, similar to handling a noindex meta tag. https://pagefind.app/docs/indexing/#limiting-what-sections-of-a-page-are-indexed