Sub-sections on the sidebar without sub-categories

Just so we’re clear, the picture in your topic is not Discourse, it’s Xwiki.