mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
23 lines
539 B
Markdown
23 lines
539 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/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" %}}
|