update to caddy 0.9b2
This commit is contained in:
1 parent
886f396d8f
commit
67f475ce42
3 files changed
+19
-8
No files matched your search
@@ -24,7 +24,7 @@ func init() {
|
||||
// Setup is the init function of Caddy plugins and it configures the whole
|
||||
// middleware thing.
|
||||
func setup(c *caddy.Controller) error {
|
||||
cnf := httpserver.GetConfig(c.Key)
|
||||
cnf := httpserver.GetConfig(c)
|
||||
conf, _ := ParseHugo(c, cnf.Root)
|
||||
|
||||
// Checks if there is an Hugo website in the path that is provided.
|
||||
@@ -61,10 +61,11 @@ func setup(c *caddy.Controller) error {
|
||||
Next: next,
|
||||
Configs: []filemanager.Config{
|
||||
filemanager.Config{
|
||||
PathScope: conf.Root,
|
||||
Root: http.Dir(conf.Root),
|
||||
BaseURL: conf.BaseURL,
|
||||
StyleSheet: conf.Styles,
|
||||
HugoEnabled: true,
|
||||
PathScope: conf.Root,
|
||||
Root: http.Dir(conf.Root),
|
||||
BaseURL: conf.BaseURL,
|
||||
StyleSheet: conf.Styles,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user