I want to disable HTML outputs for kind pages. But I want to enable it for kind section.
However I see that Hugo generates html files for kind pages even after setting disableKinds = ['page'] in config.toml.
Problem 2
I also observed that Hugo generates the following files on it’s own. I have neither provided any sitemap templates nor configured my site for taxonomy (in my config.toml).
Hi @jmooring . Thanks a lot for the answer. That worked like a charm.
But for the sake of clarity, I have a question.
Why Hugo generates many things (sitemaps,/tags/,/categories/) on its own? Then we have to disable the automatic generation using disableKinds.
Should it not be other way round? Hugo should not generate all these on its own. We should specify what we want Hugo to generate.
The tags and categories taxonomies are enabled by default, making it easier for a new user to get started. All they have to do is add a tags or categories array to front matter and it just… works.
Most people want a sitemap, and by enabling it by default they don’t have to think about it. It just… works. Same with RSS.
And theme authors rely on these defaults.
We spend a lot of time and energy to make sure that the defaults are sensible, but they will never be right for everyone.
I’m not sure this will add anything of importance to that thread, but by reading the title, it seems what you wanted to do was to disable specifically the html output formats, and maybe you still wanted the RSS or json etc… In which case you should look at the ouputs config.
This can be set in the Front Matter, so also available with cascade.