Add Absolute url config

pull/60/merge
Henrique Dias 2016-07-01 15:47:36 +01:00
parent fc062e55f0
commit 8c6cbe1f05
1 changed files with 1 additions and 0 deletions

View File

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