fixing initial publish bug, using correct assets package

This commit is contained in:
2017-07-30 13:23:27 -07:00
parent e950515960
commit 968c50e3e2
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"path/filepath"
"strings"
"github.com/g3n/engine/gui/assets"
"git.stephensearles.com/stephen/caddy-hugo2/assets"
"github.com/mholt/caddy"
"github.com/mholt/caddy/caddyhttp/httpserver"
)
+6 -1
View File
@@ -75,5 +75,10 @@ func (ch *CaddyHugo) Setup(dir string) error {
return fmt.Errorf("couldn't initialize media: %v", err)
}
return ch.Publish()
err = ch.Publish()
if err != nil {
fmt.Println("error with initial publish of hugo site:", err)
}
return nil
}