relref
Syntax
relref . CONTENT
ref
and relref
look up a content page by logical name (ref
) or relative path (relref
) to return the permalink:
{{ 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.