SiteParam
The siteparam shortcode prints values of site-wide params contained in your hugo.toml.
Usage
To print params from a page’s front matter and falling back to the site options, use Hugo’s built-in param shortcode.
Parameter
| Name | Position | Default | Notes |
|---|---|---|---|
| name | 1 | <empty> | The name of the site param to be displayed. |
Examples
editURL
editURL value: https://github.com/McShelby/hugo-theme-relearn/edit/main/docs/content/${FilePath}
Nested Parameter with Markdown and HTML Formatting
To use formatted parameter, add this in your hugo.toml:
hugo.
Now values containing Markdown will be formatted correctly.
hugo.
Formatted parameter: A nested option <b>with</b> formatting