The essentials

Layouts

One shell. Many pages.

Shared structure

Layouts hold the document structure, shared styles, scripts, and content insertion point. A page chooses its layout in front matter.

---
title: About us
description: A little about our team.
layout: default
---
<h1>Small team. Thoughtful work.</h1>

Content insertion

<main>{{ content }}</main>

The builder substitutes page content and metadata. Use {{ title }}, {{ description }}, and {{ base }} for shared values.

Custom layouts

Create another HTML file in layouts/ and reference its basename in page front matter. Layout names are constrained to the layout directory.

Edit this page on GitHub

Search documentation

Search the docs, components, and blocks. Use Tab to select a result.