0%

hexo文章分类

hexo文章分类:

1、进入博客目录,创建页面。

hexo new page categories



完成后有提示:

INFO Created: /opt/blog/source/categories/index.md



2、修改上一步生成的md文件,添加type: “categories”到文件中,改好后是这样的:


title: 文章分类
date: 2020-02-18 05:07:50
type: “categories”

至此,文章分类已经创建完成,下面需要给博文指定分类。




3,打开博文md文件,添加分类属性:

categories:
– server



4,重新发布即可看到。

注意,一篇博文只能属于一个分类,设置多个分类时将会成为分类嵌套。