之前写过 hexo的分类列表支持子分类导航 ,简单回顾下需求,就是想让列表页能够根据不同的年份来切换,效果如下: review 当时采用的临时方案,虽然效果是达到了,但是具体实现不够优雅,里面还有hardcode,代码如下 let categoryParent=''; page.posts.sort('date', -1).each(