I followed the instructions word by word for pagefind, however I can't get it to work. The program installs using npx pagefind --source "public" with public being the public folder of my website containing my html files, however using inspect element and running the commands in the documentation returns "undefined"
https://pagefind.app/docs/installation/
https://youtu.be/74lsEXqRQys
Pagefind indexes my website with the following output:
Building search indexes]
Total:
Indexed 2 languages
Indexed 824 pages
Indexed 1616 words
Indexed 0 filters
Indexed 0 sorts```
Pagefind is a static binary with no dynamic dependencies, so in most cases will be simple to install and run. Pagefind is currently supported on Windows, macOS, and x86-64 Linux distributions.
In this talk I’ll introduce Pagefind, a new open-source library for static websites that provides efficient search at scale without any extra infrastructure. I’ll demonstrate the process of adding Pagefind to a new site, and also show how well it works at scale — for example, Pagefind can return a search query against the entirety of MDN with a ...