From: Bjørn Erik Pedersen Date: Thu, 18 Apr 2019 07:25:40 +0000 (+0200) Subject: commands: Replace IsDraft with Draft in list command X-Git-Tag: v0.55.3~13 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3e421bd47cd35061df89c1c127ec8fa4ae368449;p=brevno-suite%2Fhugo commands: Replace IsDraft with Draft in list command Fixes #5873 --- diff --git a/commands/list.go b/commands/list.go index 99e9afe4..bdf34663 100644 --- 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())) }