-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Better config file default when creating new site #4165
Comments
There is a couple of problems with this approach:
We should improve in this area, but I'm not sure this is it. If I, as a new Hugoer, got this config in my face, I would have thought that Hugo was some really complex thing for developers only. And that is not the common case. |
I agree with you with that. Some Idea from me:
I just really like the way that Laravel handle their config. If you have time please take a look. https://github.com/laravel/laravel/blob/master/config/app.php |
Here is my take on it:
We already have some "test helper generator" from code. And we have one place in the code where we set all the defaults. So what we can do is to add some metadata there which can be used when
The metadata should be:
The config created with
That file should also be part of a automatic integration test. |
Hi Sorry for jumping in (Let me know if you feel opening a new issue about it will serve better). When trying to use different themes I found out that most of them will utilise just part of the settings (and will add of their own). I think that while generating this config.toml it will make sense to have a different secondary theme-config.toml This will allow to use different themes on the same website (not realy possible today) for A/B testing for example... What do you think? |
This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help. |
|
My proposal is either to create a new file with |
Problem
When starting out a new site, we sometimes find the config does not explain directly. Instead we go to the docs and find out there. Even in the docs, some of the config keys are not documented yet. Leading to confusion.
In this issue, I propose a new format for default config file with Categorization and Explanation for each key.
Current
config.toml
file:Solution
In this case, I'm using
yaml
.Proposed default config file. If there is no comment on some key, then it means it's not documented on the docs.
The text was updated successfully, but these errors were encountered: