-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Description
$ hugo version
hugo v0.147.2+extended darwin/arm64 BuildDate=unknown
The documentation for the hugo new theme command mentions the theme.toml file. But the command don't generate this file. Instead it generates a hugo.toml file.
$ find themes/test
themes/test
themes/test/archetypes
themes/test/archetypes/default.md
themes/test/content
themes/test/content/posts
themes/test/content/posts/post-1.md
themes/test/content/posts/post-2.md
themes/test/content/posts/post-3
themes/test/content/posts/post-3/bryce-canyon.jpg
themes/test/content/posts/post-3/index.md
themes/test/content/posts/_index.md
themes/test/content/_index.md
themes/test/layouts
themes/test/layouts/page.html
themes/test/layouts/home.html
themes/test/layouts/_partials
themes/test/layouts/_partials/terms.html
themes/test/layouts/_partials/menu.html
themes/test/layouts/_partials/head
themes/test/layouts/_partials/head/css.html
themes/test/layouts/_partials/head/js.html
themes/test/layouts/_partials/head.html
themes/test/layouts/_partials/footer.html
themes/test/layouts/_partials/header.html
themes/test/layouts/taxonomy.html
themes/test/layouts/baseof.html
themes/test/layouts/section.html
themes/test/layouts/term.html
themes/test/static
themes/test/static/favicon.ico
themes/test/i18n
themes/test/data
themes/test/assets
themes/test/assets/css
themes/test/assets/css/main.css
themes/test/assets/js
themes/test/assets/js/main.js
themes/test/hugo.toml
The content of hugo.toml is the following:
baseURL = 'https://example.org/'
languageCode = 'en-US'
title = 'My New Hugo Site'
[menus]
[[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.146.0'
The first three lines are conflicting with the ones of the root hugo.toml.