Search

Every Pagemark site includes built-in full-text search. No configuration needed.

How it works

During each build, Pagemark generates a search-index.json file containing the title, headings, and content of every page. The search UI loads this index on demand and searches client-side.

Using search

  • Click the search bar in the header
  • Or press Ctrl+K (Cmd+K on Mac) anywhere on the page
  • Type your query — results appear instantly
  • Use arrow keys to navigate results
  • Press Enter to go to the selected result
  • Press Escape to close

How results are ranked

Results are scored by where the match was found:

Match location Score
Page title Highest
Heading (h1-h6) Medium
Body content Lowest

Results are sorted by score, so title matches always appear first.

Tips

  • Search works across all pages in your site
  • Searches are case-insensitive
  • The index is lazy-loaded — it only fetches when you first open search
  • Index size scales with your content (typically a few KB)