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] }