hugolib: Update deprecation vs Hugo 0.20

Fixes #3271
This commit is contained in:
Bjørn Erik Pedersen
2017-04-07 10:48:09 +02:00
parent af99a59021
commit 9580872459
2 changed files with 1 additions and 35 deletions

View File

@@ -1507,7 +1507,7 @@ func (p *Page) copy() *Page {
func (p *Page) Now() time.Time {
// Delete in Hugo 0.21
helpers.Deprecated("Page", "Now", "Use now (the template func)", false)
helpers.Deprecated("Page", "Now", "Use now (the template func)", true)
return time.Now()
}
@@ -1515,13 +1515,6 @@ func (p *Page) Hugo() *HugoInfo {
return hugoInfo
}
func (p *Page) RSSlink() template.URL {
// TODO(bep) we cannot have two of these
// Remove in Hugo 0.20
helpers.Deprecated(".Page", "RSSlink", "Use RSSLink", true)
return p.RSSLink()
}
func (p *Page) Ref(refs ...string) (string, error) {
if len(refs) == 0 {
return "", nil