fixing initial publish bug, using correct assets package

pull/8/head
Stephen Searles 8 years ago
parent e950515960
commit 968c50e3e2
  1. 2
      http.go
  2. 7
      setup.go

@ -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
}

Loading…
Cancel
Save