hexo 增加tags和categories

categories

1
hexo new page "categories"

然后到该文件里面增加以下内容

1
source/categories/index.md
1
2
type: "categories"
layout: "categories"

tags

1
hexo new page "tags"

然后到该文件里面增加以下内容

1
source/tags/index.md
1
2
type: "tags"
layout: "tags"

如果想让每次创建文件都自带tagscategories还需要修改以下内容

1
scaffolds/post.md

增加

1
2
categories:
tags: