hugo-theme-relearn/exampleSite/content/shortcodes/siteparam.en.md
Sören Weber 15cfc82ddb
theme: convert front matter to TOML #52
remove date field
2021-08-25 13:33:29 +02:00

542 B

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

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/McShelby/hugo-theme-relearn/edit/main/exampleSite/content/"

Use the siteparam shortcode to display its value.

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

is displayed as

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