Created
April 26, 2011 23:36
-
-
Save dry/943413 to your computer and use it in GitHub Desktop.
Page Fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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