8000 Inconsistency between documentation and generated files · Issue #13701 · gohugoio/hugo · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Inconsistency between documentation and generated files #13701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
triaxx opened this issue May 8, 2025 · 0 comments · Fixed by #13705
Closed

Inconsistency between documentation and generated files #13701

triaxx opened this issue May 8, 8000 2025 · 0 comments · Fixed by #13705
Assignees
Labels

Comments

@triaxx
Copy link
triaxx commented May 8, 2025
$ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
0