From c578620b57af9b85138e5edbfc72324581adf3ab Mon Sep 17 00:00:00 2001 From: Andrew Brampton Date: Wed, 4 Oct 2017 08:11:27 -0700 Subject: [PATCH] Remove page arg from examples of ref shortcode --- content/functions/ref.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/functions/ref.md b/content/functions/ref.md index 54d938cd4..ac35cc8b7 100644 --- a/content/functions/ref.md +++ b/content/functions/ref.md @@ -11,7 +11,7 @@ menu: docs: parent: "functions" keywords: [cross references, anchors] -signature: ["ref PAGE CONTENT"] +signature: ["ref CONTENT"] workson: [] hugoversion: relatedfuncs: [relref] @@ -19,10 +19,10 @@ deprecated: false aliases: [] --- -`ref` and `relRef` look up a content page by relative path (`relref`) or logical name (`ref`) to return the permalink. Both functions require a `Page` object (usually satisfied with a "`.`"): +`ref` and `relRef` look up a content page by relative path (`relref`) or logical name (`ref`) to return the permalink: ``` -{{ relref . "about.md" }} +{{ ref "about.md" }} ``` These functions are used in two of Hugo's built-in shortcodes. You can see basic usage examples of both `ref` and `relref` in the [shortcode documentation](/content-management/shortcodes/#ref-and-relref).