docs/themes/learn/exampleSite/content/shortcodes/siteparam.en.md
2023-05-24 18:17:12 +02:00

539 B

title description
Site param Get value of site params variables in your page.

siteparam shortcode is used to help you print values of site params.

For instance, in this current site, the editURL variable is used in config.toml

[params]
  editURL = "https://github.com/matcornic/hugo-theme-learn/edit/master/exampleSite/content/"

Use the siteparam shortcode to display its value.

`editURL` Value : {{%/* siteparam "editURL" */%}}

is displayed as

editURL Value : {{% siteparam "editURL" %}}