summaryrefslogtreecommitdiffstats
path: root/hugolib/page.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-07 10:48:09 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-04-07 10:48:09 +0200
commit95808724595ab97042c204f3d92ea5c2929a8241 (patch)
tree37a50c002e56f2ef5719cada70857ba654c76055 /hugolib/page.go
parentaf99a59021cc1231d5afa79f4ab17d34f39260fc (diff)
hugolib: Update deprecation vs Hugo 0.20
Fixes #3271
Diffstat (limited to 'hugolib/page.go')
-rw-r--r--hugolib/page.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/hugolib/page.go b/hugolib/page.go
index 00646d27d..259b2fb92 100644
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -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