YAML Front Matter
Lesson 6 of 28 · 5 min
YAML Front Matter allows developers to inject additional Stencil objects into the page context. BigCommerce Stencil themes utilize YAML front matter in template pages.
When utilized, Front Matter must be the opening text of a file and must take the form of a valid YAML set between triple-dashed lines.
Below is an example of YAML Front Matter in the Cornerstone home.html file.

Note: In the example above, theme settings_ refers to where the object is defined in the settings area of the config.json file --- .homepage_new_products_count is an arbitrary name given to a key in the config file. See Theme Styles Configuration for more information.