Add note about {{ layout }} to site.

This commit is contained in:
Parker Moore 2016-05-19 14:44:00 -07:00
parent 1d81d2087e
commit ca0b1f7ea6
No known key found for this signature in database
GPG Key ID: 193CDEBA72063C58
1 changed files with 18 additions and 0 deletions

View File

@ -40,6 +40,16 @@ following is a reference of the available data.
</p></td> </p></td>
</tr> </tr>
<tr>
<td><p><code>layout</code></p></td>
<td><p>
Layout specific information + the <a href="../frontmatter/">YAML front
matter</a>. Custom variables set via the YAML Front Matter in
layouts will be available here.
</p></td>
</tr>
<tr> <tr>
<td><p><code>content</code></p></td> <td><p><code>content</code></p></td>
<td><p> <td><p>
@ -326,6 +336,14 @@ following is a reference of the available data.
<code>page.custom_css</code>. <code>page.custom_css</code>.
</p> </p>
<p>
If you specify front matter in a layout, access that via <code>page</code>
For example, if you specify <code>class: full_page</code>
in a pages front matter, that value will be available as
<code>layout.class</code> in the layout and its parents.
</p>
</div> </div>
## Paginator ## Paginator