Skip to content

Page layout file

A Page layout file wraps every Page beneath its folder, so navigation and footer are written once.

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

Example

sites/www/layout.mdx in a Startup repository.

sites/www/layout.mdx
<Navigation />
<Slot />
<Footer />

Props

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

PropTypeRequiredDescription
themeThemeA Theme in brand/ for every Page beneath the folder.
bannerstringA line shown above every Page beneath the folder.

Generates

SiteBuilder compiles it into these records, Verbs and routes.

KindWhat
RecordsPage
VerbsNone.
RoutesNone.