From f878cc3040b679c1e256f5b93047c79690665103 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Mon, 22 Aug 2016 16:40:58 +0100 Subject: [PATCH] update setup to work with the most recent version of File manager --- installer.go | 2 +- setup.go | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/installer.go b/installer.go index 1f004105..57bdcc3d 100644 --- a/installer.go +++ b/installer.go @@ -14,7 +14,7 @@ import ( ) // This is automatically set on `go generate` -const version = "UNDEFINED" +const version = "v0.16" // GetPath retrives the Hugo path for the user or install it if it's not found func getPath() string { diff --git a/setup.go b/setup.go index 1a2e73d6..4c8a2519 100644 --- a/setup.go +++ b/setup.go @@ -104,13 +104,15 @@ func setup(c *caddy.Controller) error { Configs: []config.Config{ config.Config{ HugoEnabled: true, - PathScope: conf.Root, - FrontMatter: format, - Root: http.Dir(conf.Root), + User: &config.User{ + PathScope: conf.Root, + FrontMatter: format, + Root: http.Dir(conf.Root), + StyleSheet: conf.Styles, + }, BaseURL: conf.BaseURL, AbsoluteURL: strings.Replace(cnf.Addr.Path+"/"+conf.BaseURL, "//", "/", -1), AddrPath: strings.TrimSuffix(cnf.Addr.Path, "/"), - StyleSheet: conf.Styles, }, }, },