mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -251,7 +251,7 @@ func (s *SiteInfo) Param(key interface{}) (interface{}, error) {
|
||||
|
||||
// GetParam gets a site parameter value if found, nil if not.
|
||||
func (s *SiteInfo) GetParam(key string) interface{} {
|
||||
helpers.Deprecated("SiteInfo", ".GetParam", ".Param", false)
|
||||
helpers.Deprecated("SiteInfo", ".GetParam", ".Param", true)
|
||||
v := s.Params[strings.ToLower(key)]
|
||||
|
||||
if v == nil {
|
||||
|
Reference in New Issue
Block a user