Fix broken convert command

Fixes #2437
This commit is contained in:
Bjørn Erik Pedersen 2016-09-13 09:59:18 +02:00
parent 69a97823c4
commit be09781af1

View file

@ -83,9 +83,16 @@ func convertContents(mark rune) (err error) {
if err := InitializeConfig(); err != nil {
return err
}
site := &hugolib.Site{}
if err := site.Initialise(); err != nil {
h, err := hugolib.NewHugoSitesFromConfiguration()
if err != nil {
return err
}
site := h.Sites[0]
if err = site.Initialise(); err != nil {
return err
}