mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
@@ -302,6 +302,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{} {
|
||||
// Remove in Hugo 0.20
|
||||
helpers.Deprecated("SiteInfo", ".GetParam", "Use .Param", true)
|
||||
v := s.Params[strings.ToLower(key)]
|
||||
|
||||
|
Reference in New Issue
Block a user