Skip to content

Page file

A Page file renders one route of a Site from Components with literal props; its folder path is the URL.

PropertyValue
Pathsites/[site]/**/page.mdx
HoldsPage
Kindfile
Leadersdb-first, git-first
TeamMarketing Team
Written byChange.merge
Compiled bySiteBuilder

Example

sites/www/pricing/page.mdx in a Startup repository.

sites/www/pricing/page.mdx
---
title: Pricing
---
Every month is reconciled, reviewed and tied out to the bank.

<PriceTable offers={["monthly-close"]} />
<Faq collection="faq/pricing" />

Props

The frontmatter keys the file takes. The body is its prose.

PropTypeRequiredDescription
titlestringrequiredThe Page title.
descriptiontextOne sentence for search and link previews.
aboutCollectionOn a [key] Page, the Collection whose members it renders.

Generates

SiteBuilder compiles it into these records, Verbs and routes.

KindWhat
RecordsPage
VerbsNone.
Routes/{path}, /{path}.md