From 91771ee3b653ba6e9556553d8cfb112e07e71be9 Mon Sep 17 00:00:00 2001 From: David Oliver Date: Sat, 28 Nov 2015 20:26:01 +0100 Subject: [PATCH] Add Draft page variable to docs Also tweaks language used in page params sentence. --- docs/content/templates/variables.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index 390a26c12..62c4ae359 100644 --- a/docs/content/templates/variables.md +++ b/docs/content/templates/variables.md @@ -50,6 +50,7 @@ matter, content or derived from file location. **.ReadingTime** The estimated time it takes to read the content in minutes.
**.Weight** Assigned weight (in the front matter) to this content, used in sorting.
**.RawContent** Raw Markdown content without the metadata header. Useful with [remarkjs.com](http://remarkjs.com)
+**.Draft** A boolean, `true` if the content is marked as a draft in the front matter.
**.IsNode** Always false for pages.
**.IsPage** Always true for page.
**.Site** See [Site Variables]({{< relref "#site-variables" >}}) below.
@@ -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**