欢迎访问我的个人博客网站:http://www.yanmin99.com/
hexo的Next创建categories
一、categories创建步骤
- 1、新建一个页面,命名为categories。命令如下:
hexo new page categories
在myBlog/source下会新生成一个新的文件夹categories
,在该文件夹下会有一个index.md文件
- 2、编辑categories文件夹下的index.md
---
title: tags
date: 2017-07-10 16:36:26
type: "tags"
comments: false
---
如果有启用多说或者Disqus评论,默认页面也会带有评论。需要关闭的话,请添加字段 comments 并将值设置为 false
- 3、在菜单中添加链接。编辑主题的
themes/next/_config.yml
,将menu中的categories: /categories
注释去掉,如下:
menu:
home: /
archives: /archives/
categories: /categories/
# tags: /tags/
网友评论