Skip t' th' main rrreadin'

SiteParam

Th' siteparam shortcode prints values o' site-wide params contained 'n yer project configurat'n.

This text comes from yer configurat'n

Usage

​
{{% siteparam name="siteparam.test.greetings" %}}

T' print params from a page’s front matter an' fall'n back t' th' ship options, use Hugo’s built-in param shortcode.

Parameters

Name Posit'n Default Notes
name 1 <empty> Th' name o' th' ship param t' be displayed.

Examples

editURL

​
`editURL` value: `{{% siteparam name="editURL" %}}`
editURL value: vscode://file/${BaseDir}/${FilePath}

Nested Parameter wit' Marrrkdown an' HTML Formatt'n

T' use formatted parameter, add this 'n yer project configurat'n:

hugo.
marrrkup:
  goldmark:
    renderer:
      unsafe: true

Now values contain'n Marrrkdown will be formatted correctly.

hugo.
params:
  siteparam:
    test:
      text: A **nested** parameter <b>with</b> formatt'n
​
Formatted parameter: {{% siteparam name="siteparam.test.text" %}}
Formatted parameter: A nested option <b>with</b> formatt'n