fix related to spf13/hugo#1852 - build is going to fail
parent
c8c2d4e9b5
commit
6c0abf9fd6
|
@ -165,6 +165,7 @@ func ParseComponents(r *http.Request) []string {
|
||||||
|
|
||||||
// Run is used to run the static website generator
|
// Run is used to run the static website generator
|
||||||
func Run(c *config.Config) {
|
func Run(c *config.Config) {
|
||||||
|
commands.MainSite = nil
|
||||||
c.Args = append([]string{"--source", c.Path}, c.Args...)
|
c.Args = append([]string{"--source", c.Path}, c.Args...)
|
||||||
commands.HugoCmd.ParseFlags(c.Args)
|
commands.HugoCmd.ParseFlags(c.Args)
|
||||||
if err := commands.HugoCmd.RunE(nil, nil); err != nil {
|
if err := commands.HugoCmd.RunE(nil, nil); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue