Search index 🔗

When search.enabled is true, Flatmark writes _site/search/entries.json after rendering all content and index pages.

The file contains a JSON array with one object per rendered page:

[
  {
    "title": "Page title",
    "url": "/path/to/page.html",
    "text": "Rendered page text"
  }
]
Field Type Description
title string Value of the page's title front-matter key, or Untitled.
url string Generated page URL, including base_url when configured.
text string Plain text extracted from the rendered content before the layout is applied.

Flatmark generates the index but does not define a query protocol. Search interfaces load and filter the JSON in the browser. If a search-results.html layout exists in the site or theme, Flatmark generates /search/results.html unless the site already supplies that output path. The default theme supplies the layout.

See Enable site search for setup instructions.