]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
create/skeletons: Move theme's site config to top level
authorJoe Mooring <joe.mooring@veriphor.com>
Wed, 23 Aug 2023 13:33:37 +0000 (06:33 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 23 Aug 2023 16:05:00 +0000 (18:05 +0200)
Closes #11380

create/skeletons/theme/config/_default/hugo.toml [deleted file]
create/skeletons/theme/config/_default/menus.toml [deleted file]
create/skeletons/theme/hugo.toml [new file with mode: 0644]
testscripts/commands/new.txt

diff --git a/create/skeletons/theme/config/_default/hugo.toml b/create/skeletons/theme/config/_default/hugo.toml
deleted file mode 100644 (file)
index 1237194..0000000
+++ /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 (file)
index 526645f..0000000
+++ /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 (file)
index 0000000..890e58d
--- /dev/null
@@ -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"
index 955841fda84004d81516ad98aeb71acf5d98c799..f44aaca202876a030b4546fe426830c171f5f43b 100644 (file)
@@ -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