mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 02:51:04 +00: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