diff options
Diffstat (limited to 'commands/new_site.go')
-rw-r--r-- | commands/new_site.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/commands/new_site.go b/commands/new_site.go index 1e3ed710b..e49a60202 100644 --- a/commands/new_site.go +++ b/commands/new_site.go @@ -122,8 +122,10 @@ func (n *newSiteCmd) newSite(cmd *cobra.Command, args []string) error { } forceNew, _ := cmd.Flags().GetBool("force") - - return n.doNewSite(hugofs.NewDefault(config.New()), createpath, forceNew) + cfg := config.New() + cfg.Set("workingDir", createpath) + cfg.Set("publishDir", "public") + return n.doNewSite(hugofs.NewDefault(cfg), createpath, forceNew) } func createConfig(fs *hugofs.Fs, inpath string, kind string) (err error) { |