Custom frontmatter

I’m building a middleman blog. I’d like to be able to define a subtitle for a blog post in the frontmatter just as I do for the title, and then pull that subtitle in dynamically to other pages.

Is there a way to grab a subtitle in the current gem? If not, could I easily create a custom frontmatter item for a subtitle?

I actually figured this out thanks to a collection of resources.

For anyone who might be wondering the same thing, here’s what I did:

Created a line in my frontmatter:

subtitle: Place subtitle here

Added this line to my index page:

<%= article.data.subtitle %>

And that was it! Super easy.

For future reference: http://middlemanapp.com/basics/frontmatter/