mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-19 00:51:05 +00:00
parent
4b3ca38b2e
commit
04a4a193a9
2 changed files with 1 additions and 19 deletions
|
@ -242,25 +242,6 @@ type PageMeta struct {
|
|||
Weight int
|
||||
}
|
||||
|
||||
func (*PageMeta) WordCount() int {
|
||||
// Remove in Hugo 0.19
|
||||
helpers.Deprecated("PageMeta", "WordCount", "Use .WordCount (on Page)", true)
|
||||
return 0
|
||||
}
|
||||
|
||||
func (*PageMeta) FuzzyWordCount() int {
|
||||
// Remove in Hugo 0.19
|
||||
helpers.Deprecated("PageMeta", "FuzzyWordCount", "Use .FuzzyWordCount (on Page)", true)
|
||||
return 0
|
||||
|
||||
}
|
||||
|
||||
func (*PageMeta) ReadingTime() int {
|
||||
// Remove in Hugo 0.19
|
||||
helpers.Deprecated("PageMeta", "ReadingTime", "Use .ReadingTime (on Page)", true)
|
||||
return 0
|
||||
}
|
||||
|
||||
type Position struct {
|
||||
Prev *Page
|
||||
Next *Page
|
||||
|
|
|
@ -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)]
|
||||
|
||||
|
|
Loading…
Reference in a new issue