The siteparam shortcode prints values of site params.


While the examples are using shortcodes with named parameter you are free to use positional aswell or call this shortcode from your own partials.

{{% siteparam name="editURL" %}}
{{% siteparam "editURL" %}}
{{ partial "shortcodes/siteparam.html" (dict
  "page" .
  "name" "editURL"


Name Position Default Notes
name 1 <empty> The name of the site param to be displayed.


editURL from hugo.toml

`editURL` value: {{% siteparam name="editURL" %}}

editURL value:${FilePath}

Nested parameter with Markdown and HTML formatting

To use formatted parameter, add this in your hugo.toml:

    unsafe = true
        text = "A **nested** parameter <b>with</b> formatting"
Formatted parameter: {{% siteparam name="siteparam.test.text" %}}

Formatted parameter: A nested option <b>with</b> formatting