Skip to content
Permalink
Browse files

commands: Replace IsDraft with Draft in list command

Fixes #5873
  • Loading branch information...
bep committed Apr 18, 2019
1 parent 1028760 commit 3e421bd47cd35061df89c1c127ec8fa4ae368449
Showing with 1 addition and 1 deletion.
  1. +1 −1 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()))
}

0 comments on commit 3e421bd

Please sign in to comment.
You can’t perform that action at this time.