Open navClose nav

Front Matter

What is Front Matter?

Front Matter is structured metadata that lives at the top of your content files that allows you to add custom variables to your pages. Depending on your static site generator, Front Matter can be defined in a variety of formats including YAML, TOML, and JSON.

For example, YAML Front Matter may look like this:

title: Homepage
## Welcome to the homepage!
Thanks for visiting our site!

Forestry provides a simple and intuitive editor for Front Matter, for both Markdown and HTML documents.,dpr_auto,f_auto,q_80,w_640/

Forestry offers a variety of UI elements called Front Matter Fields that allow editors to easily update Front Matter. When importing your site, Forestry will try to choose the best Front Matter Field for each Front Matter value.

You can customize the Front Matter Fields of a page using Forestry’s Front Matter Templates. These templates allow fields to be ordered and configured in a variety of ways such as making them required, setting default values, adding descriptions, and much more!

Last updated on June 11, 2020