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

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