mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-13 14:46:58 -04:00
helpers: Add doc to Language.SetParam
This commit is contained in:
parent
4352156a27
commit
2ac9817eae
@ -93,6 +93,8 @@ func (l *Language) Params() map[string]interface{} {
|
|||||||
return l.params
|
return l.params
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetParam sets param with the given key and value.
|
||||||
|
// SetParam is case-insensitive.
|
||||||
func (l *Language) SetParam(k string, v interface{}) {
|
func (l *Language) SetParam(k string, v interface{}) {
|
||||||
l.params[strings.ToLower(k)] = v
|
l.params[strings.ToLower(k)] = v
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user