update setup to work with the most recent version of File manager
This commit is contained in:
parent
7bb140314a
commit
f878cc3040
|
@ -14,7 +14,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// This is automatically set on `go generate`
|
// This is automatically set on `go generate`
|
||||||
const version = "UNDEFINED"
|
const version = "v0.16"
|
||||||
|
|
||||||
// GetPath retrives the Hugo path for the user or install it if it's not found
|
// GetPath retrives the Hugo path for the user or install it if it's not found
|
||||||
func getPath() string {
|
func getPath() string {
|
||||||
|
|
10
setup.go
10
setup.go
|
@ -104,13 +104,15 @@ func setup(c *caddy.Controller) error {
|
||||||
Configs: []config.Config{
|
Configs: []config.Config{
|
||||||
config.Config{
|
config.Config{
|
||||||
HugoEnabled: true,
|
HugoEnabled: true,
|
||||||
PathScope: conf.Root,
|
User: &config.User{
|
||||||
FrontMatter: format,
|
PathScope: conf.Root,
|
||||||
Root: http.Dir(conf.Root),
|
FrontMatter: format,
|
||||||
|
Root: http.Dir(conf.Root),
|
||||||
|
StyleSheet: conf.Styles,
|
||||||
|
},
|
||||||
BaseURL: conf.BaseURL,
|
BaseURL: conf.BaseURL,
|
||||||
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
|
||||||
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
|
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
|
||||||
StyleSheet: conf.Styles,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue