Skip to content
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

Use hugo.toml instead of config.toml #74

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Use hugo.toml instead of config.toml #74

merged 3 commits into from
Jan 23, 2024

Conversation

martijnengler
Copy link
Contributor

Use the file hugo.toml in both the README.md and the exampleSite, since Hugo will look for this file first.

The current instructions (using config.toml) in a new Hugo site (that has a hugo.toml-file) means that the site doesn't work, or the theme is not activated.

Note that this is a breaking change for sites running on older versions. (But v0.110.0 was released almost a year ago.)

Relevant Hugo commit:

gohugoio/hugo@f38a2fb

Use the file hugo.toml in both the README.md and the exampleSite, since
Hugo will look for this file first.

The current instructions (using config.toml) in a new Hugo site
(that has a hugo.toml-file) means that the site doesn't work, or the
theme is not activated.

Note that this is a breaking change for sites running on older versions.
(But v0.110.0 was released almost a year ago.)

Relevant Hugo commit:

gohugoio/hugo@f38a2fb
@LinkSake
Copy link

This is important, by default using hugo new site will create a hugo.toml file and if the server is started it will thorw an error found no layout file for "HTML" for [...].
It took me a while to understand why it was failing, but for a brand new project running just a cp config.toml hugo.toml solves the issue.

@stefanilie
Copy link

stefanilie commented Jan 22, 2024

Wanted to open a PR too for this, then saw this one exists already. Fully agree with @martijnengler

@janraasch janraasch self-assigned this Jan 23, 2024
@janraasch
Copy link
Owner

Hi fellow bear bloggers 🧸,

sorry about the delay. I was in hibernation 🧤😅. That's what bears do, right 😇?

This is a great pr.

Thank you very much ❤️.

@janraasch janraasch merged commit dec1120 into janraasch:master Jan 23, 2024
3 checks passed
@martijnengler martijnengler deleted the rename-config-toml branch January 25, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants