There are numerous features in Hugo that I read about and wonder, “What is the canonical use case for this?”…more than can be discussed in a single post. Today, I’m curious about the disableKinds config parameter.
Reading thedocs, I think I understand how disableKindsworks, but I’m unclear why I might want to use it. Does using it help with build performance? How is using this different than simply not including a certain kind, e.g., taxonomies, in a template?
The why would be because there are Kinds you might want to not have created.
Say you want a single page site, listing all your projects, but you don’t want single pages created for each project. So you might disableKinds all but the home kind. (See here for all the disable-able Kinds).
I’m using hugo as a fancy markdown generator for a django app.
I know there are probably better solutions for this, but my site evolved from a static hugo site and it’s been faster for me to do this rather than rewrite everything.
To that end, I was able to disable everything I don’t need with one config.toml line: