mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
69a97823c4
commit
be09781af1
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue