Hexo添加标签页

在hexo项目根目录使用命令添加一个新的页面tags

1
2
$ cd your-hexo-site
$ hexo new page tags

然后需要编辑新建的页面,需要将页面类型设置为tags:

1
2
3
4
title: 标签
date: 2014-12-22 12:39:04
type: "tags"
---

在菜单中添加链接。编辑 主题配置文件 , 添加 tagsmenu 中,如下:

1
2
3
4
menu:
home: /
archives: /archives
tags: /tags