add addr path

pull/60/merge
Henrique Dias 2016-07-01 15:51:59 +01:00
parent 8c6cbe1f05
commit 6b87fc2485
1 changed files with 1 additions and 0 deletions

View File

@ -97,6 +97,7 @@ func setup(c *caddy.Controller) error {
Root: http.Dir(conf.Root),
BaseURL: conf.BaseURL,
AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1),
AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"),
StyleSheet: conf.Styles,
},
},