hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 3e421bd47cd35061df89c1c127ec8fa4ae368449
parent 102876033113a2a6423302bc8697f114a04460b9
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 18 Apr 2019 09:25:40 +0200

commands: Replace IsDraft with Draft in list command

Fixes #5873

Diffstat:
Mcommands/list.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/list.go b/commands/list.go
@@ -70,7 +70,7 @@ List requires a subcommand, e.g. ` + "`hugo list drafts`.",
 				}
 
 				for _, p := range sites.Pages() {
-					if p.IsDraft() {
+					if p.Draft() {
 						jww.FEEDBACK.Println(filepath.Join(p.File().Dir(), p.File().LogicalName()))
 					}