mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 17:34:44 -04:00
Remove page arg from examples of ref shortcode
This commit is contained in:
parent
ee81931a41
commit
c578620b57
@ -11,7 +11,7 @@ menu:
|
|||||||
docs:
|
docs:
|
||||||
parent: "functions"
|
parent: "functions"
|
||||||
keywords: [cross references, anchors]
|
keywords: [cross references, anchors]
|
||||||
signature: ["ref PAGE CONTENT"]
|
signature: ["ref CONTENT"]
|
||||||
workson: []
|
workson: []
|
||||||
hugoversion:
|
hugoversion:
|
||||||
relatedfuncs: [relref]
|
relatedfuncs: [relref]
|
||||||
@ -19,10 +19,10 @@ deprecated: false
|
|||||||
aliases: []
|
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).
|
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).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user