Given the high volume of blog posts on this site (/s), I have decided to implement a search function to allow readers like you to better find content on this site.

In reality, I saw the announcement for Pagefind and I thought that I was something cool to add to the site, so I did.

Installation is as easy as they advertise, just run

npx pagefind --source "public"

after building the site and the search index is built.

I then added a new partial and a new search page to the site, alongside some metadata tags to the blog posts (mostly to display the correct page titles in the search results).

After that, the search page is live here!