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 {