New disableKinds option

See https://github.com/spf13/hugo/commit/6d2281c8ead70ac07122027c989807c0aa1a7722

It is merged into master, but not in a release yet.

I will not go into details (it needs some doc), but this will, hopefully, make the people shouting about their /index.md etc. sites not working anymore since Hugo 0.18 (because of naming conflict with the home page or section etc.) happier.

With this you can turn off what you do not want.

2 Likes

A quick howto:

Add this to your config.toml and you will get NOTHING:

disableKinds = ["page", "home", "section", "taxonomy", "taxonomyTerm", "RSS", "sitemap", "robotsTXT", "404"]
2 Likes