Skip to content

Pages

A page file makes its folder a public URL of the Site, written as prose and Components with literal props.

A page.mdx file makes its folder a public URL of a Site. It is one Page: prose and Components with literal props.

  • sites/www/
  • page.mdx/
  • pricing/page.mdx/pricing

Reference

MDX, parsed and never run. A prop is a literal or a record id; an expression fails the parse check.

KeyTypeHolds
titlestringThe Page title and its default heading
descriptionstringThe search and social summary
aboutCollection or recordThe Thing the Page reads; required under a [key] folder
kindstringThe Page type, such as pricing or article

Examples

Minimal

sites/www/pricing/page.mdx
---
title: Pricing
---
<PriceTable offers={["pro", "pro-annual"]} />

Leaseline

sites/www/page.mdx
---
title: Never miss a renewal
description: Leaseline tracks every lease end date and reminds residents for you.
---
<Hero heading="No renewal slips past its date" action="/checkout/pro" />

Leaseline reads your rent roll, counts down to each end date, and sends the notice at 60 days.

<Features items={["Rent roll import", "Notices at 60 days", "A weekly list of who has not answered"]} />
<Faq collection="faq/pricing" />

What it builds

The SiteBuilder compiles each file into one Page.

  • a Page at the folder's path
  • its HTML, its Markdown twin, and an entry in /sitemap.xml and /llms.txt
  • Site.published when the Site publishes

Good to know

  • New markup enters only as a new Component, never inline HTML. See Components.
  • A layout wraps every Page below its folder.