From 73d74394c811b869830eeaf2fe7af9d6a87a480f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 27 Jul 2017 12:32:10 +0100 Subject: [PATCH] Hopefully fix #159 Former-commit-id: fee7b5c6a519d5a6ff26b2a653a3c82984f1dead [formerly 7fee30ae26f6941db1b718b64adfa6250aaf82c3] [formerly 46a761a926a67c0d0f8f49e84369912eba1377ef [formerly fbd0cf0c140cc3efc292417317d1205447e826dc]] Former-commit-id: 4bdbf9a31f827d8aa36bad9b89f27bd5a373b75c [formerly 7e747b4e27d6958ff8448b5e5e2fe6716821a9ff] Former-commit-id: a30d3b204d318b1d84e8583d5bbdbc6761852e2a --- 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] }