mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Correct check of published boolean
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
311593bff0
commit
49fe04c0bd
@@ -514,7 +514,7 @@ func (p *Page) update(f interface{}) error {
|
||||
*draft = cast.ToBool(v)
|
||||
case "published": // Intentionally undocumented
|
||||
published = new(bool)
|
||||
*published = !cast.ToBool(v)
|
||||
*published = cast.ToBool(v)
|
||||
case "layout":
|
||||
p.layout = cast.ToString(v)
|
||||
case "markup":
|
||||
|
Reference in New Issue
Block a user