Closed Pinjasaur closed 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
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.