Skip to content

Static site (2): full-text search with Pagefind - #76

Merged
jposluns merged 1 commit into
mainfrom
claude/site-search
Jul 7, 2026
Merged

Static site (2): full-text search with Pagefind#76
jposluns merged 1 commit into
mainfrom
claude/site-search

Conversation

@jposluns

@jposluns jposluns commented Jul 7, 2026

Copy link
Copy Markdown
Owner

PR 2 of the static-site phase (ADR 0003). Adds full-text search using Pagefind, per the recorded decision.

What changed

  • /search/ page with the Pagefind UI, linked from the header nav.
  • Build step: npm run build now runs eleventy && pagefind --site _site, so the search index is generated from the built HTML.
  • Indexing: only recipe pages are indexed (data-pagefind-body on the recipe article), with a Category filter (data-pagefind-filter), a clean result title (data-pagefind-meta="title"), and an absolute thumbnail image so result photos load correctly. Tag chips now render with spacing so search excerpts read as words.
  • Self-hosted: all search assets live in the generated /pagefind/ bundle; no external requests (matches the no-hotlinking rule).

Verified locally

  • 487 recipe pages indexed (only recipes, not index/category/tag pages).
  • Drove the search UI in Chromium: "lemon" returns 146 matches with photos, highlighted terms, and the Category filter present.
  • No cook-from value touched; dash guard and markdownlint clean.

Next

PR 3: SEO and Recipe JSON-LD. PR 4: the Pages deploy workflow with github.blimacake.com.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HpG2vky2XhDtfc6y16TRis


Generated by Claude Code

Add a /search/ page powered by Pagefind. npm run build now runs
eleventy then pagefind to index the built site. Only recipe pages are
indexed (data-pagefind-body), with a Category filter, clean result
titles/thumbnails (absolute image meta), and highlighted matches. Search
assets are self-hosted in the generated bundle; no external requests.

Verified: 487 recipes indexed; querying returns matching recipes with
photos.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HpG2vky2XhDtfc6y16TRis
@jposluns
jposluns merged commit 4b4e6c8 into main Jul 7, 2026
4 checks passed
@jposluns
jposluns deleted the claude/site-search branch July 7, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants