You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 add JSON to the home page (for a search index), this:
[outputs]
home = ["HTML", "RSS", "JSON"]
Will result in missing RSS for the other list types.
outputFormats, mediaTypes, related, outputs, permalinks(and maybe others) translates into a map in the config.
For maps with entries of the same type (mediaTypes), Hugo allows redefinition of just one or more entries.
For maps with entries of different types (related), you must provide the full configuration. The different entries only make sense in relation to the others.
We will follow the rule in the above and change the way outputs behaves.
The text was updated successfully, but these errors were encountered:
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.This is surprising for users. See gohugoio/hugoDocs#408
outputFormats
,mediaTypes
,related
,outputs
,permalinks
(and maybe others) translates into amap
in the config.mediaTypes
), Hugo allows redefinition of just one or more entries.related
), you must provide the full configuration. The different entries only make sense in relation to the others.We will follow the rule in the above and change the way
outputs
behaves.The text was updated successfully, but these errors were encountered: