Repository: gohugoio/hugo (language: go)

Issue:
hugo new theme: Move the config to a top level hugo.toml
Motivation:

1. For discovery
2. Few themes/sites needs the config directory setup, and I don't think we should start out with that as the default.




Discussion / hints:

Fix patch:
diff --git a/create/skeletons/theme/config/_default/hugo.toml b/create/skeletons/theme/config/_default/hugo.toml
deleted file mode 100644
index 1237194114f..00000000000
--- a/create/skeletons/theme/config/_default/hugo.toml
+++ /dev/null
@@ -1,4 +0,0 @@
-[module]
-  [module.hugoVersion]
-    extended = false
-    min = "0.116.0"
diff --git a/create/skeletons/theme/config/_default/menus.toml b/create/skeletons/theme/config/_default/menus.toml
deleted file mode 100644
index 526645f2cab..00000000000
--- a/create/skeletons/theme/config/_default/menus.toml
+++ /dev/null
@@ -1,14 +0,0 @@
-[[main]]
-name = 'Home'
-pageRef = '/'
-weight = 10
-
-[[main]]
-name = 'Posts'
-pageRef = '/posts'
-weight = 20
-
-[[main]]
-name = 'Tags'
-pageRef = '/tags'
-weight = 30
diff --git a/create/skeletons/theme/hugo.toml b/create/skeletons/theme/hugo.toml
new file mode 100644
index 00000000000..890e58deb3a
--- /dev/null
+++ b/create/skeletons/theme/hugo.toml
@@ -0,0 +1,23 @@
+baseURL = 'https://example.org/'
+languageCode = 'en-us'
+title = 'My New Hugo Site'
+
+[[menus.main]]
+name = 'Home'
+pageRef = '/'
+weight = 10
+
+[[menus.main]]
+name = 'Posts'
+pageRef = '/posts'
+weight = 20
+
+[[menus.main]]
+name = 'Tags'
+pageRef = '/tags'
+weight = 30
+
+[module]
+  [module.hugoVersion]
+    extended = false
+    min = "0.116.0"


Test patch:
diff --git a/testscripts/commands/new.txt b/testscripts/commands/new.txt
index 955841fda84..f44aaca2028 100644
--- a/testscripts/commands/new.txt
+++ b/testscripts/commands/new.txt
@@ -26,8 +26,6 @@ cd mytheme
 checkfile archetypes/default.md
 checkfile assets/css/main.css
 checkfile assets/js/main.js
-checkfile config/_default/hugo.toml
-checkfile config/_default/menus.toml
 checkfile content/_index.md
 checkfile content/posts/_index.md
 checkfile content/posts/post-1.md
@@ -48,6 +46,7 @@ checkfile layouts/partials/terms.html
 checkfile static/favicon.ico
 checkfile LICENSE
 checkfile README.md
+checkfile hugo.toml
 checkfile theme.toml
 exists data
 exists i18n