hugo-theme-relearn/exampleSite/content/shortcodes/siteparam.en.md
Sören Weber c108d677b4 Rebranding to new theme name
- Rename theme from "Learn" to "Relearn"
- also change URLs
- remove old references
- more removal of french and chinese
2021-06-30 14:56:06 +02:00

23 lines
No EOL
540 B
Markdown

---
title: Site param
description : "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`
```toml
[params]
editURL = "https://github.com/McShelby/hugo-theme-relearn/edit/master/exampleSite/content/"
```
Use the `siteparam` shortcode to display its value.
```
`editURL` Value : {{%/* siteparam "editURL" */%}}
```
is displayed as
`editURL` Value : {{% siteparam "editURL" %}}