mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
Calculate the next Hugo version in Deprecated
Deprecation will be an ongoing activity for many future versions.
This commit is contained in:
1 parent
3273fce044
commit
f4244be036
1 file changed
+1
-1
+1
-1
@@ -133,7 +133,7 @@ func Deprecated(object, item, alternative string) {
|
|||||||
}
|
}
|
||||||
deprecatedLogs.Lock()
|
deprecatedLogs.Lock()
|
||||||
if !deprecatedLogs.m[key] {
|
if !deprecatedLogs.m[key] {
|
||||||
jww.ERROR.Printf("%s's %s is deprecated and will be removed in Hugo 0.15. Use %s instead.", object, item, alternative)
|
jww.ERROR.Printf("%s's %s is deprecated and will be removed in Hugo %s. Use %s instead.", object, item, NextHugoReleaseVersion(), alternative)
|
||||||
deprecatedLogs.m[key] = true
|
deprecatedLogs.m[key] = true
|
||||||
}
|
}
|
||||||
deprecatedLogs.Unlock()
|
deprecatedLogs.Unlock()
|
||||||
|
|||||||
Reference in new issue
Block a user