update setup to work with the most recent version of File manager

This commit is contained in:
Henrique Dias committed 2016-08-22 16:40:58 +01:00
1 parent 7bb140314a
commit f878cc3040
2 files changed
+7 -5

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
// 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
func getPath() string {
+6 -4
View File
@@ -104,13 +104,15 @@ func setup(c *caddy.Controller) error {
Configs: []config.Config{
config.Config{
HugoEnabled: true,
PathScope: conf.Root,
FrontMatter: format,
Root: http.Dir(conf.Root),
User: &config.User{
PathScope: conf.Root,
FrontMatter: format,
Root: http.Dir(conf.Root),
StyleSheet: conf.Styles,
},
BaseURL: conf.BaseURL,
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
StyleSheet: conf.Styles,
},
},
},