Revise the deprecation strategy

Git users and theme authors two Hugo releases to fix:

1. With a visible warning
2. Then with an ERROR that exits with -1

Fixes #2726
This commit is contained in:
Bjørn Erik Pedersen
2016-11-23 17:26:13 +01:00
parent 0a0db9cd25
commit f1ed89fec4
4 changed files with 25 additions and 11 deletions

View File

@@ -245,7 +245,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")
helpers.Deprecated("SiteInfo", ".GetParam", ".Param", false)
v := s.Params[strings.ToLower(key)]
if v == nil {