collections.EchoParam
Syntax
collections.EchoParam COLLECTION KEY ⟼ any
Alias
echoParam
For example, consider this site configuration:
hugo.
params:
footer:
poweredBy: Hugo
[params]
[params.footer]
poweredBy = 'Hugo'
{
"params": {
"footer": {
"poweredBy": "Hugo"
}
}
}
To print the value of poweredBy
:
{{ echoParam site.Params.footer "poweredby" }} → Hugo
{{ site.Params.footer.poweredBy }} → Hugo
{{ index site.Params.footer "poweredBy" }} → Hugo