hexo icon indicating copy to clipboard operation
hexo copied to clipboard

How can I archive posts by day?

Open regrex opened this issue 10 years ago • 2 comments

I want to use hexo to build a weekly of my group. We will publish many posts in a day. Hexo archive posts by month or year. How can I archive posts by day?

regrex avatar Dec 09 '15 14:12 regrex

archive pages are just html, you can modify your theme to create them, and use {% set post.year = date(post.date, 'YYYY') %} to get the different data. And I'm afraid there is no direct way to do this.

Xuanwo avatar Dec 10 '15 01:12 Xuanwo

fixed by https://github.com/hexojs/hexo-generator-archive/pull/2 , you can install the latest version and set daily to true.

Xuanwo avatar Dec 10 '15 11:12 Xuanwo