mirror of
https://github.com/gohugoio/hugo.git
synced 2024-07-05 00:32:03 +00:00
parent
59df7db764
commit
614dd2aa16
|
@ -237,7 +237,7 @@ func InitLoggers() {
|
||||||
// Deprecated logs ERROR logs about a deprecation, but only once for a given set of arguments' values.
|
// Deprecated logs ERROR logs about a deprecation, but only once for a given set of arguments' values.
|
||||||
func Deprecated(object, item, alternative string) {
|
func Deprecated(object, item, alternative string) {
|
||||||
// deprecatedLogger.Printf("%s's %s is deprecated and will be removed in Hugo %s. Use %s instead.", object, item, NextHugoReleaseVersion(), alternative)
|
// deprecatedLogger.Printf("%s's %s is deprecated and will be removed in Hugo %s. Use %s instead.", object, item, NextHugoReleaseVersion(), alternative)
|
||||||
DistinctErrorLog.Printf("%s's %s is deprecated and will be removed VERY SOON. Use %s instead.", object, item, alternative)
|
DistinctErrorLog.Printf("%s's %s is deprecated and will be removed in a future release. Use %s instead.", object, item, alternative)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,22 @@ type PageMeta struct {
|
||||||
Weight int
|
Weight int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (*PageMeta) WordCount() int {
|
||||||
|
helpers.Deprecated("PageMeta", "WordCount", ".WordCount (on Page)")
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PageMeta) FuzzyWordCount() int {
|
||||||
|
helpers.Deprecated("PageMeta", "FuzzyWordCount", ".FuzzyWordCount (on Page)")
|
||||||
|
return 0
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*PageMeta) ReadingTime() int {
|
||||||
|
helpers.Deprecated("PageMeta", "ReadingTime", ".ReadingTime (on Page)")
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
type Position struct {
|
type Position struct {
|
||||||
Prev *Page
|
Prev *Page
|
||||||
Next *Page
|
Next *Page
|
||||||
|
|
Loading…
Reference in a new issue