Skip to content

Commit

Permalink
Add Draft page variable to docs
Browse files Browse the repository at this point in the history
Also tweaks language used in page params sentence.
  • Loading branch information
DavidOliver authored and anthonyfok committed Dec 1, 2015
1 parent b0b6a8c commit 91771ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/content/templates/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ matter, content or derived from file location.
**.ReadingTime** The estimated time it takes to read the content in minutes.<br>
**.Weight** Assigned weight (in the front matter) to this content, used in sorting.<br>
**.RawContent** Raw Markdown content without the metadata header. Useful with [remarkjs.com](http://remarkjs.com)<br>
**.Draft** A boolean, `true` if the content is marked as a draft in the front matter.<br>
**.IsNode** Always false for pages.<br>
**.IsPage** Always true for page.<br>
**.Site** See [Site Variables]({{< relref "#site-variables" >}}) below.<br>
Expand All @@ -58,7 +59,7 @@ matter, content or derived from file location.
## Page Params

Any other value defined in the front matter, including taxonomies, will be made available under `.Params`.
Take for example I'm using *tags* and *categories* as my taxonomies. The following would be how I would access them:
For example, the *tags* and *categories* taxonomies are accessed with:

* **.Params.tags**
* **.Params.categories**
Expand Down

0 comments on commit 91771ee

Please sign in to comment.