diff --git a/setup.go b/setup.go index f998e245..147fb362 100644 --- a/setup.go +++ b/setup.go @@ -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, }, },