Repository navigation
Build the Pagefind search index in the GitHub Pages workflow - #184
Merged
Merged
Conversation
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) <noreply@anthropic.com>
✅ Deploy Preview for nwborg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
oruebel
approved these changes
Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Site search does not work on nwb.org. The header loads
/pagefind/pagefind-ui.js, which returns 404 there, so the search box never renders.netlify.tomlruns Pagefind after the Hugo build, which is why search works in deploy previews, but the workflow that deploys to GitHub Pages did not.This adds the same step to the workflow. I checked it locally by building with
hugo --minifyand runningnpx pagefind --site public. The index is generated for 156 pages and a query returns results. The workflow only runs on push tomain, so its first real run is the merge.🤖 Generated with Claude Code