Frontmatter Reference

Frontmatter gives an article its title and metadata before its Markdown body. trail-frontmatter(5) is the authoritative field reference, including types, defaults, validation, and differences between topic and book pages.

Write useful metadata #

A title helps readers choose a page. A description explains its scope in search results and Markdown mirrors. A topic page's type distinguishes a concept, a how-to, or a reference; books already have a document structure and do not accept that field.

Writing Articles and Frontmatter shows a complete example and explains how metadata affects the reading experience. trail build --strict checks that descriptions are present.

Related-page references guide a reader to a useful next topic. Inline references make a recognizable phrase link to its definition. These serve different purposes: use related pages for a reading path and inline references for terminology.

See Inline References for matching and Writing Links and References for explicit links.

Edit this page