修复Hexo使用NexT主题后不生成分类和标签的index页问题

主要参考hexo不生成categories和tags的index页方法(BY-NC-SA),手动创建categoriestags两个pages,NexT主题会自动生成相应的index.html

1
2
3
4
5
6
$ hexo new page categories
INFO Validating config
INFO Created: source\categories\index.md
$ hexo new page tags
INFO Validating config
INFO Created: source\tags\index.md
1
2
3
4
5
6
└── source
├── _posts
├── categories
| └── index.md
└── tags
└── index.md

source/categories/index.md

1
2
3
4
5
---
title: 分类
type: categories
date:
---

source/tags/index.md

1
2
3
4
5
---
title: 标签
type: tags
date:
---