From 6c0abf9fd674806803f6f5adb7fd876585dd742b Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 13 Feb 2016 12:52:22 +0000 Subject: [PATCH] fix related to spf13/hugo#1852 - build is going to fail --- utils/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/utils.go b/utils/utils.go index 9ab2fed4..633a655a 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -165,6 +165,7 @@ func ParseComponents(r *http.Request) []string { // Run is used to run the static website generator func Run(c *config.Config) { + commands.MainSite = nil c.Args = append([]string{"--source", c.Path}, c.Args...) commands.HugoCmd.ParseFlags(c.Args) if err := commands.HugoCmd.RunE(nil, nil); err != nil {