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