mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
cabc6b3186
commit
695be00c07
2 changed files with 6 additions and 2 deletions
|
@ -244,17 +244,20 @@ type PageMeta struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*PageMeta) WordCount() int {
|
func (*PageMeta) WordCount() int {
|
||||||
|
// Remove in Hugo 0.19
|
||||||
helpers.Deprecated("PageMeta", "WordCount", ".WordCount (on Page)", true)
|
helpers.Deprecated("PageMeta", "WordCount", ".WordCount (on Page)", true)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*PageMeta) FuzzyWordCount() int {
|
func (*PageMeta) FuzzyWordCount() int {
|
||||||
|
// Remove in Hugo 0.19
|
||||||
helpers.Deprecated("PageMeta", "FuzzyWordCount", ".FuzzyWordCount (on Page)", true)
|
helpers.Deprecated("PageMeta", "FuzzyWordCount", ".FuzzyWordCount (on Page)", true)
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*PageMeta) ReadingTime() int {
|
func (*PageMeta) ReadingTime() int {
|
||||||
|
// Remove in Hugo 0.19
|
||||||
helpers.Deprecated("PageMeta", "ReadingTime", ".ReadingTime (on Page)", true)
|
helpers.Deprecated("PageMeta", "ReadingTime", ".ReadingTime (on Page)", true)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -1585,7 +1588,8 @@ func (p *Page) Hugo() *HugoInfo {
|
||||||
|
|
||||||
func (p *Page) RSSlink() template.HTML {
|
func (p *Page) RSSlink() template.HTML {
|
||||||
// TODO(bep) we cannot have two of these
|
// 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
|
return p.RSSLink
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ func (s *SiteInfo) Param(key interface{}) (interface{}, error) {
|
||||||
|
|
||||||
// GetParam gets a site parameter value if found, nil if not.
|
// GetParam gets a site parameter value if found, nil if not.
|
||||||
func (s *SiteInfo) GetParam(key string) interface{} {
|
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)]
|
v := s.Params[strings.ToLower(key)]
|
||||||
|
|
||||||
if v == nil {
|
if v == nil {
|
||||||
|
|
Loading…
Reference in a new issue