aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/convert.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-11-24 13:11:14 +0100
committerBjørn Erik Pedersen <[email protected]>2018-11-24 13:11:14 +0100
commitdcfeed35c6e14c1ce593d23be9d2b89c66ce9bee (patch)
treea6ccf024dccb6ec1c7476c23cf5f30bf294e2f76 /commands/convert.go
parentf9b4eb4f3968d32f45e0168c854e6b0c7f3a90b0 (diff)
downloadhugo-dcfeed35c6e14c1ce593d23be9d2b89c66ce9bee.tar.gz
hugo-dcfeed35c6e14c1ce593d23be9d2b89c66ce9bee.zip
commands: Include drafts in convert command
Fixes #5457
Diffstat (limited to 'commands/convert.go')
-rw-r--r--commands/convert.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/convert.go b/commands/convert.go
index b208f6cab..e8e3a0e32 100644
--- a/commands/convert.go
+++ b/commands/convert.go
@@ -111,6 +111,8 @@ func (cc *convertCmd) convertContents(format metadecoders.Format) error {
return err
}
+ c.Cfg.Set("buildDrafts", true)
+
h, err := hugolib.NewHugoSites(*c.DepsCfg)
if err != nil {
return err