Hexo is a great open source project in many ways. However due to language barriers the English documentation needs help from the project’s community. Myself included. Skip right to the solution.
Let’s say we have two categories, “Articles” and “Projects”. You have created three posts categorized as “Articles” and three posts categorized as “Projects”. On the homepage you want to display all the “Article” posts with a headline and excerpt text. Then in another column you want to display all the “Project” posts with a headline and a large image.
The challenge it turned out was not the lack of functionality with Hexo it was parsing through the docs, repositories and using Google translate.
query: categories: ‘projects’
<%- partial('_partial/index-post', post: post, index: true) %>
<% }) %>
query option is the key to all this and knowing to pass
categories: 'projects' did the trick.