From fbd0cf0c140cc3efc292417317d1205447e826dc Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 27 Jul 2017 12:32:10 +0100 Subject: [PATCH] Hopefully fix #159 --- caddy/hugo/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddy/hugo/setup.go b/caddy/hugo/setup.go index aa72ed78..3e8120f0 100644 --- a/caddy/hugo/setup.go +++ b/caddy/hugo/setup.go @@ -52,7 +52,7 @@ func parse(c *caddy.Controller) ([]*filemanager.FileManager, error) { // Get the baseURL and baseScope args := c.RemainingArgs() - if len(args) == 1 { + if len(args) >= 1 { directory = args[0] }