I would like to group categories in hexo. While the hexo <% list_categories %> helper lists all my categories alright, I would like to group nested categories right.
My question is on two levels, first, how do you represent the subcategories in the front matter. In other words, how would I add the subcategories [motosport, cricket, basketball, hockey] into the following front matter. sports is the main category
categories:
- sports
Two, how do I enumerate through all categories and each of their children. Do I still use this code
<%- list_categories(site.categories, { options}); %>
or is there a better way/function?