hugolib: Bump the current warning deprecations - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 695be00c0715fdfeda7ed256196f77cf72240b38
 (DIR) parent cabc6b31866e3bb86759f6615a83cec4c3610e82
 (HTM) Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Sun,  1 Jan 2017 12:33:30 +0100
       
       hugolib: Bump the current warning deprecations
       
       Fixes #2836
       
       Diffstat:
         M hugolib/page.go                     |       6 +++++-
         M hugolib/site.go                     |       2 +-
       
       2 files changed, 6 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/hugolib/page.go b/hugolib/page.go
       @@ -244,17 +244,20 @@ type PageMeta struct {
        }
        
        func (*PageMeta) WordCount() int {
       +        // Remove in Hugo 0.19
                helpers.Deprecated("PageMeta", "WordCount", ".WordCount (on Page)", true)
                return 0
        }
        
        func (*PageMeta) FuzzyWordCount() int {
       +        // Remove in Hugo 0.19
                helpers.Deprecated("PageMeta", "FuzzyWordCount", ".FuzzyWordCount (on Page)", true)
                return 0
        
        }
        
        func (*PageMeta) ReadingTime() int {
       +        // Remove in Hugo 0.19
                helpers.Deprecated("PageMeta", "ReadingTime", ".ReadingTime (on Page)", true)
                return 0
        }
       @@ -1585,7 +1588,8 @@ func (p *Page) Hugo() *HugoInfo {
        
        func (p *Page) RSSlink() template.HTML {
                // TODO(bep) we cannot have two of these
       -        helpers.Deprecated(".Page", "RSSlink", "RSSLink", false)
       +        // Remove in Hugo 0.20
       +        helpers.Deprecated(".Page", "RSSlink", "RSSLink", true)
                return p.RSSLink
        }
        
 (DIR) diff --git a/hugolib/site.go b/hugolib/site.go
       @@ -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 {