Front Matter - leo/cory GitHub Wiki

All pages and posts can contain a so-called "Front Matter". That's a small block of information which can be accessed by using the {{page}} template tag. Here's an example:

The located in /pages/index.hbs contains the following lines at the top:

---
title: Home
description: Where the stories start
---

Now those variables can be accessed in the code of the page itself (or even in its layout) using the following template tags:

{{page.title}}
{{page.description}}

But wait! That's not the only thing you can do with it. It's even possible to set the layout per-page by simply using the layout property:

---
layout: home
---

Now the page that contains this property will be wrapped into the home layout, rather than into the default one.