commands: Include drafts in convert command

Fixes #5457
This commit is contained in:
Bjørn Erik Pedersen 2018-11-24 13:11:14 +01:00
parent f9b4eb4f39
commit dcfeed35c6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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