Skip to content

Commit

Permalink
commands: Replace IsDraft with Draft in list command
Browse files Browse the repository at this point in the history
Fixes #5873
  • Loading branch information
bep committed Apr 18, 2019
1 parent 1028760 commit 3e421bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}

Expand Down

0 comments on commit 3e421bd

Please sign in to comment.