Hugo References #
Within the site #
Hugo makes it super easy to inter-link within the site.
Pure markdown #
[<description>](<relative path>)
For instance:
[target.md in a common directory](../target)
Shortcodes #
Note: the snippets below have extra spacing to nullify the linking.
This one’s really nifty - references can be made based on the unique filename of an .md
on the site. This does require uniqueness.
[text]( { { < ref "markdown file name" > } } )
With an anchor:
[text]( { { < ref "markdown file name#section" > } } )
Note that adding the .md
at the end is optional.
On page #
To a section on page:
[text]( { { < ref "#section" > } } )