I am working on a theme which has two modes. In one mode, the site is built as a blog while in the other, it is simply built as a sort of redirection single page. Both views work through two separate sections, namely cards and posts. I want to be able to configure Hugo through config.toml such that one of the two section isn’t built(or gets disabled). Is there any way to do that?
To clarify, I am not looking for a workaround, I just want to disable a section during build. Using page bundles would be troublesome for me since I don’t want to spend much time developing right now(or rather, I can’t), therefore I’d like to know if it’s possible to do so with respect to sections alone.