commands: Replace IsDraft with Draft in list command

Fixes #5873
This commit is contained in:
Bjørn Erik Pedersen 2019-04-18 09:25:40 +02:00
parent 1028760331
commit 3e421bd47c
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
}