mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 07:00:31 +03:00
Small adjustment to SiteInfo init
After a visual inspection to make (pretty) sure it is correct re multiple languages. Updates #2309
This commit is contained in:
parent
2f7e8df5ba
commit
28696b5dca
2 changed files with 5 additions and 2 deletions
|
@ -83,7 +83,10 @@ func (l *Language) SetParam(k string, v interface{}) {
|
|||
l.params[k] = v
|
||||
}
|
||||
|
||||
func (l *Language) GetBool(key string) bool { return cast.ToBool(l.Get(key)) }
|
||||
|
||||
func (l *Language) GetString(key string) string { return cast.ToString(l.Get(key)) }
|
||||
|
||||
func (ml *Language) GetStringMap(key string) map[string]interface{} {
|
||||
return cast.ToStringMap(ml.Get(key))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue