Frontmatter Reference

All frontmatter fields available in content files.

Page fields (non-_index.md files)

FieldTypeDefaultTemplate access
titlestring""page.title
weightinteger0page.weight
pathstringfrom filenamepage.path
extratable{}page.extra
extra.descriptionstringpage.description

page.path is the URL route (e.g. /blog/my-post/), not the source file path.

page.last_updated is derived from the file's modification time.

Section fields (_index.md files)

FieldTypeDefaultTemplate access
titlestring""section.title
weightinteger0section.weight
extratable{}section.extra

Computed fields

These are not set in frontmatter but are available in templates:

FieldAvailable onDescription
*.contentpage, sectionRendered markdown HTML
*.permalinkpage, sectionFull URL path
*.tocpage, sectionTable of contents HTML
*.ancestorspage, sectionArray of parent section paths
*.last_updatedpage, sectionFile modification time
section.pagessectionChild pages (sorted by weight)
section.subsectionssectionChild sections (sorted by weight)