On this page
article
Pagefind
Using
Indexing
First, the content must be indexed. To filter what gets indexed,
you can place an attribute in data-pagefind-body.
<article
class=""
data-pagefind-body
>
</article>
It needs to import pagefind:
const pagefind = await import("/pagefind/pagefind.js");
const results = await pagefind.search("hello")
const result1 = await results[0].data()