projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ebbf1b
)
hugolib: Delay deletion of Page.Now()
author
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Sat, 8 Apr 2017 16:02:36 +0000
(18:02 +0200)
committer
Bjørn Erik Pedersen
<bjorn.erik.pedersen@gmail.com>
Sat, 8 Apr 2017 16:02:36 +0000
(18:02 +0200)
Looking at the state of the themes, it will be too painful to log ERROR now.
hugolib/page.go
patch
|
blob
|
history
diff --git
a/hugolib/page.go
b/hugolib/page.go
index 259b2fb9203c895c84ff72e62fa35e84cfd3666a..677343f1f0cd950f07598a77e20b0918669f8d8c 100644
(file)
--- a/
hugolib/page.go
+++ b/
hugolib/page.go
@@
-1506,8
+1506,8
@@
func (p *Page) copy() *Page {
}
func (p *Page) Now() time.Time {
- // Delete in Hugo 0.2
1
- helpers.Deprecated("Page", "Now", "Use now (the template func)",
tru
e)
+ // Delete in Hugo 0.2
2
+ helpers.Deprecated("Page", "Now", "Use now (the template func)",
fals
e)
return time.Now()
}