Pages Index (methanol:pages)

The methanol:pages virtual module provides a list of all pages in your project, facilitating client-side features such as blog archives, category filters, and custom search interfaces.

import pages from 'methanol:pages'
// or
import { pages } from 'methanol:pages'

Included Content

Each entry in the index represents a page and its metadata. Heavy fields are automatically stripped to keep the bundle size small:

The resulting objects contain metadata such as routePath, routeHref, title, frontmatter, stats, and excerpt.

Notes