From 8c6cbe1f05a7a430749b1a5fa98bd30e8e8bfb06 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 1 Jul 2016 15:47:36 +0100 Subject: [PATCH] Add Absolute url config --- setup.go | 1 + 1 file changed, 1 insertion(+) 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, }, },