mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
ec4e6f9df2
git-subtree-dir: docs git-subtree-split: f887bd7b4e3e7c7e76cd63951e5b0d37d8fe0ac7
967 B
967 B
title | description | godocref | date | publishdate | lastmod | categories | menu | signature | workson | hugoversion | relatedfuncs | deprecated | aliases | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
relref | Looks up a content page by relative path. | 2017-02-01 | 2017-02-01 | 2017-02-01 |
|
|
|
|
false |
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 ".
"):
{{ relref . "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.
For an extensive explanation of how to leverage ref
and relref
for content management, see Cross References.