From 672bf9da0d8037e580825ee13ddf446edb3b6066 Mon Sep 17 00:00:00 2001 From: spf13 Date: Tue, 19 Aug 2014 21:27:13 -0400 Subject: [PATCH] Adding IsNode & IsPage functions to Page & Node --- content/templates/variables.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/templates/variables.md b/content/templates/variables.md index 3cecf2169..f76a6465c 100644 --- a/content/templates/variables.md +++ b/content/templates/variables.md @@ -43,6 +43,8 @@ matter, content or derived from file location. **.WordCount** The number of words in the content.
**.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.
+**.IsNode** Always false for pages.
+**.IsPage** Always true for page.
**.Site** See site variables below
## Page Params @@ -65,6 +67,8 @@ includes indexes, lists and the homepage. **.Url** The relative url for this node.
**.RSSLink** Link to the indexes' rss link
**.Data** The data specific to this type of node.
+**.IsNode** Always true for nodes.
+**.IsPage** Always false for nodes.
**.Site** See site variables below
## Site Variables