From 215d4e738119454c2e944e9f765039c43f3a5c66 Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 25 Oct 2013 18:37:53 -0400 Subject: [PATCH] Adding support for linkTitles --- content/layout/variables.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/layout/variables.md b/content/layout/variables.md index 226ebb3a3..bbbe251f1 100644 --- a/content/layout/variables.md +++ b/content/layout/variables.md @@ -15,6 +15,8 @@ are available in the context for the templates. **.Date** The date the content is published on.
**.Indexes** These will use the field name of the plural form of the index (see tags and categories above)
**.Permalink** The Permanent link for this page.
+**.RelPermalink** The Relative permanent link for this page.
+**.LinkTitle** Access when creating links to this content. Will use linktitle if set in front-matter, else title
**.FuzzyWordCount** The approximate number of words in the content.
**.RSSLink** Link to the indexes' rss link
**.Prev** Pointer to the previous content (based on pub date)
@@ -46,7 +48,7 @@ includes indexes, lists and the homepage. Also available is `.Site` which has the following: **.Site.BaseUrl** The base URL for the site as defined in the config.json file.
-**.Site.Indexes** The names of the indexes of the site.
+**.Site.Indexes** The indexes for the entire site.
**.Site.LastChange** The date of the last change of the most recent content.
**.Site.Recent** Array of all content ordered by Date, newest first