jake-101/bael-template

Different order of catagories page

Closed this issue · 3 comments

Hello,

Is it possible to order the categories page in a way other than alphabetical? I am looking through the code and can't figure out where I would do it. I was thinking of adding an order property to each category JSON but am not sure what to do with it after that.

Hi Tate, that is certainly possible. I am planning on refactoring the template to use the nuxt/content module and latest version of nuxt with static export. I think most-used categories would be a good sort order to add, but you want a custom sort order?

I actually am not using the template for a blog so it might be an odd use case. I wanted the categories on my site to be in order of importance. I couldn't figure out a better solution so I just reversed the array and it happened to be what I needed. Being able to give each category a custom order or at least weight (like Hugo does) would have been helpful. Looking forward to the refactor and thanks for making such a great looking and performing template!

Thanks for your input and for using it! Your feedback will be included in the next update.