-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
poll: Allow partial outputs configuration #408
Comments
My vote is for the current, because, once you know there is a consistent rule, it's easy to remember and plan for.
That being said, it would be good if there is a clear documentation page on this rule, so people can be made aware of its consistent implementation. That is, if there isn't one already (sorry, haven't checked...). |
First It's a two part problem:
So I am proposing this change in But of course, democracy will win, and I will respect that. I am with you on the point of documentation :) |
That is not the currently the case. Take the example of https://gohugo.io/templates/output-formats#media-types -- it would not make sense to make the user define all the media types just to add or modify one. The same with I think the closest thing to a rule here is this:
Note that outputs (which is this discussion) does not follow the above rule. I notice I have put this in the wrong repo, but that does not matter. Thanks to @kaushalmodi for being persistent about this -- I will create another issue in the |
In Hugo, the default
outputs
configuration looks like this:This is what you get when doing nothing.
The current behaviour says that if you provide your own outputs configuration, it must be complete.
We do, however, add
HTML
as a fallback for a missing config entry. But, currently, if you want to addJSON
to the home page (for a search index), this:Will result in missing
RSS
for the other list types.See this for background: https://discourse.gohugo.io/t/need-to-redefine-the-whole-outputs-map-when-needing-to-set-just-one-kind/10953/19
The current behaviour is analogous to setting the
related
config and thesitemap
config and thepermalinks
config. You have to provide the complete definition. The thought is, that there is nothing particularly special about theRSS
output format, and if a user wants his/hers own config, even the absence of entries has a meaning.This issue is a little poll to gather some input from Hugo users. We could change this behaviour if the above makes only sense to @bep who implemented it.
The text was updated successfully, but these errors were encountered: