Skip to content

Instantly share code, notes, and snippets.

@dry
Created April 26, 2011 23:36
Show Gist options
  • Save dry/943413 to your computer and use it in GitHub Desktop.
Save dry/943413 to your computer and use it in GitHub Desktop.
Page Fields
layout:
documentation.html
--
title:
Page Custom Fields
--
summary:
h2. Page Custom Fields
Your page files don't just have to be single blocks of text that can only replace one content area in a layout. They can contain multiple custom fields as well as fields of meta data.
--
body:
A page file is a simple text file but it's structured as custom fields. Each field has a label, its content and a end marker. The field label is the word or phrase that is used to reference the field contents in a layout. The label must be immediately suffixed by a colon and a newline. From that newline, everything you type until the end marker will be part of that field contents. The end marker is two dashes on a line on their own. This page (the one that you are now reading) is called page-fields.txt and its contents are:
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment