fixing initial publish bug, using correct assets package
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/g3n/engine/gui/assets"
|
"git.stephensearles.com/stephen/caddy-hugo2/assets"
|
||||||
"github.com/mholt/caddy"
|
"github.com/mholt/caddy"
|
||||||
"github.com/mholt/caddy/caddyhttp/httpserver"
|
"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 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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user