歡迎訪問(wèn)我的個(gè)人博客網(wǎng)站:http://www.yanmin99.com/
hexo的Next創(chuàng)建categories
一、categories創(chuàng)建步驟
- 1、新建一個(gè)頁(yè)面,命名為categories。命令如下:
hexo new page categories
在myBlog/source下會(huì)新生成一個(gè)新的文件夾categories
,在該文件夾下會(huì)有一個(gè)index.md文件
- 2、編輯categories文件夾下的index.md
---
title: tags
date: 2017-07-10 16:36:26
type: "tags"
comments: false
---
如果有啟用多說(shuō)或者Disqus評(píng)論,默認(rèn)頁(yè)面也會(huì)帶有評(píng)論。需要關(guān)閉的話,請(qǐng)?zhí)砑幼侄?comments 并將值設(shè)置為 false
- 3、在菜單中添加鏈接。編輯主題的
themes/next/_config.yml,將menu中的categories: /categories注釋去掉,如下:
menu:
home: /
archives: /archives/
categories: /categories/
# tags: /tags/