Add Absolute url config

This commit is contained in:
Henrique Dias 2016-07-01 15:47:36 +01:00
parent fc062e55f0
commit 8c6cbe1f05

View File

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