From 3e421bd47cd35061df89c1c127ec8fa4ae368449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 18 Apr 2019 09:25:40 +0200 Subject: [PATCH] commands: Replace IsDraft with Draft in list command Fixes #5873 --- commands/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/list.go b/commands/list.go index 99e9afe400a..bdf34663fb8 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())) }