Frontmatter

Every content file starts with TOML frontmatter between +++ delimiters:

markdown
+++
title = "My Page"
weight = 10
+++

Page content goes here.

Fields

FieldTypeDefaultDescription
titlestring""Page or section title
weightinteger0Sort order (ascending)
pathstringfrom filenameURL route override
extratable{}Arbitrary key-value data

Extra fields

The extra table is where you put custom data:

markdown
+++
title = "My Page"

[extra]
description = "A description for meta tags"
author = "Someone"
show_toc = true
+++

Access these in templates as page.extra.description, page.extra.author, etc.

page.description is a special case — if extra.description is set, it's also available directly as page.description for Zola compatibility.

What's available in templates

See Context Variables for the full list of what's accessible as page.* and section.* in templates.

See Frontmatter Reference for a complete lookup table.