shithub: hugo

Download patch

ref: fa09e20d9aa5fd81fa3a6e40ea6d0a52933ce2fc
parent: 2f0e81989a4496644a317eed27eaa7ce959f0f58
author: Cameron Moore <[email protected]>
date: Thu Dec 15 05:39:29 EST 2016

docs: Fix Ref and RelRef syntax

Fixes #2793

--- a/docs/content/templates/variables.md
+++ b/docs/content/templates/variables.md
@@ -56,9 +56,9 @@
 **.RSSLink** Link to the taxonomies' RSS link.<br>
 **.RawContent** Raw Markdown content without the metadata header. Useful with [remarkjs.com](http://remarkjs.com)<br>
 **.ReadingTime** The estimated time it takes to read the content in minutes.<br>
-**.Ref(ref)** Returns the permalink for `ref`. See [cross-references]({{% ref "extras/crossreferences.md" %}}). Does not handle in-page fragments correctly.<br>
+**.Ref** Returns the permalink for a given reference.  Example: `.Ref "sample.md"`. See [cross-references]({{% ref "extras/crossreferences.md" %}}). Does not handle in-page fragments correctly.<br>
 **.RelPermalink** The Relative permanent link for this page.<br>
-**.RelRef(ref)** Returns the relative permalink for `ref`. See [cross-references]({{% ref "extras/crossreferences.md" %}}). Does not handle in-page fragments.<br> 
+**.RelRef** Returns the relative permalink for a given reference.  Example: `RelRef "sample.md"`. See [cross-references]({{% ref "extras/crossreferences.md" %}}). Does not handle in-page fragments.<br>
 **.Section** The [section](/content/sections/) this content belongs to.<br>
 **.Site** See [Site Variables]({{< relref "#site-variables" >}}) below.<br>
 **.Summary** A generated summary of the content for easily showing a snippet in a summary view. Note that the breakpoint can be set manually by inserting <code>&lt;!&#x2d;&#x2d;more&#x2d;&#x2d;&gt;</code> at the appropriate place in the content page.  See [Summaries](/content/summaries/) for more details.<br>