18 lines
453 B
HTML
18 lines
453 B
HTML
|
{{ with .Params.hide_example }}
|
||
|
<!-- No data here! -->
|
||
|
{{ else }}
|
||
|
<div>
|
||
|
In the config.yaml or config.toml file you would have something like
|
||
|
<p>
|
||
|
[params]
|
||
|
name = 'Simba'
|
||
|
|
||
|
Then in the partial you use the variables with brackets like this
|
||
|
{{ .Site.Params.name }} or like {{ now.Year }}
|
||
|
|
||
|
Check out this guide
|
||
|
https://cloudcannon.com/tutorials/hugo-beginner-tutorial/hugo-templating-basics/
|
||
|
</p>
|
||
|
</div>
|
||
|
{{ end }}
|