summaryrefslogtreecommitdiffstats
path: root/commands/new_site.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-15 18:45:51 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-01-16 15:34:16 +0100
commitf38a2fbd2e4de7f095a833b448cb8bc053955ce2 (patch)
tree3c88d0c12efa09ef3cc189a5859620b771004c7f /commands/new_site.go
parent6a579ebac3a81df61f22988e3eb55f7cb35ce523 (diff)
Make hugo.toml the new config.toml
Both will of course work, but hugo.toml will win if both are set. We should have done this a long time ago, of course, but the reason I'm picking this up now is that my VS Code setup by default picks up some JSON config schema from some random other software which also names its config files config.toml. Fixes #8979
Diffstat (limited to 'commands/new_site.go')
-rw-r--r--commands/new_site.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/new_site.go b/commands/new_site.go
index 438553ae7..fc4127f8b 100644
--- a/commands/new_site.go
+++ b/commands/new_site.go
@@ -83,6 +83,7 @@ func (n *newSiteCmd) doNewSite(fs *hugofs.Fs, basepath string, force bool) error
return errors.New(basepath + " already exists and is not empty. See --force.")
case !isEmpty && force:
+ // TODO(bep) eventually rename this to hugo.
all := append(dirs, filepath.Join(basepath, "config."+n.configFormat))
for _, path := range all {
if exists, _ := helpers.Exists(path, fs.Source); exists {