From 1c74ac70b129715035f3449086f843079865d0c8 Mon Sep 17 00:00:00 2001 From: Ben Dichter Date: Fri, 9 Oct 2026 12:51:57 -0400 Subject: [PATCH] Build the Pagefind search index in the GitHub Pages workflow Site search has not worked on nwb.org because the workflow that deploys to GitHub Pages never built the Pagefind index, so /pagefind/pagefind-ui.js returned 404. The Netlify preview build already runs Pagefind, which is why search worked in deploy previews. The workflow now runs it after the Hugo build. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/hugo.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml index cef19ae..5a565ab 100644 --- a/.github/workflows/hugo.yml +++ b/.github/workflows/hugo.yml @@ -49,6 +49,8 @@ jobs: run: | hugo \ --minify + - name: Build search index with Pagefind + run: npx --yes pagefind --site public - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: