Adding Search to Hugo with Pagefind

How to add search to a Hugo static site with Pagefind. No backend, no JSON templates, no pain. Just one build command and twenty lines of code.

How to add search to a Hugo static site with Pagefind. No backend, no JSON templates, no pain. Just one build command and twenty lines of code.

Why I run Hugo in a Docker container instead of installing it bare metal — cleaner builds, no version conflicts, and a dev workflow that just works.