Mathew Brown

Adding Search

Last updated August 4, 2025.

I just added search functionality to this site using Pagefind, and I'm impressed by how straightforward it was to implement privacy-respecting search on a static site.

As my content grows, I wanted visitors to easily find specific topics without clicking through navigation or browsing tags. Search fills that gap by letting people jump directly to relevant content.

Why Pagefind?

Pagefind won because it aligns with my site's philosophy:

Implementation

The setup was simple:

  1. Install Pagefind: npm install -D pagefind
  2. Update build script: npx @11ty/eleventy && npx pagefind --site _site
  3. Create search page with the Pagefind UI component
  4. Add to navigation between Archive and Work With Me

Technical Details

Pagefind automatically:

The search works entirely offline once loaded - no server required.

Performance Impact

User Experience

The search interface is clean and focused:

Why This Matters

Adding search demonstrates that static sites don't have to sacrifice functionality for performance and privacy. You can have fast, secure, user-friendly features without compromising on principles.

Try it out: Search this site for terms like "reviews", "values", or "minimalism".

Resources

The best part? This entire feature addition took less than 30 minutes to implement and perfectly fits the site's existing design and performance goals.