生成标签云之后,仍然是Cannot GET /tags/
我按照标准的标签云生成,然后tags文件下还是没有index.html
hexo new page "tags"
Then, add this line to source/tags/index.md that was created
type: "tags"
添加一个 分类 页面,并在菜单中显示页面链接。
新建一个页面,命名为 categories 。命令如下:
hexo new page categories
编辑刚新建的页面,将页面的类型设置为 categories ,主题将自动为这个页面显示所有分类。
title: 分类
date: 2014-12-22 12:39:04
注意:如果有启用多说 或者 Disqus 评论,默认页面也会带有评论。需要关闭的话,请添加字段 comments 并将值设置为 false,如:
title: 分类
date: 2014-12-22 12:39:04
type: "categories"
在菜单中添加链接。编辑主题的 _config.yml ,将 menu 中的 categories: /categories 注释去掉,如下:
menu:
home: /
categories: /categories
archives: /archives
tags: /tags
添加一个标签云页面,并在菜单中显示页面链接。
新建一个页面,命名为 tags 。命令如下:
hexo new page "tags"
编辑刚新建的页面,将页面的类型设置为 tags ,主题将自动为这个页面显示标签云。
title: All tags
date: 2014-12-22 12:39:04
注意:如果有启用多说 或者 Disqus 评论,默认页面也会带有评论。需要关闭的话,请添加字段 comments 并将值设置为 false,如:
title: All tags
date: 2014-12-22 12:39:04
type: "tags"
在菜单中添加链接。编辑主题的 _config.yml ,添加 tags 到 menu 中,如下:
menu:
home: /
archives: /archives
tags: /tags
@abc123lzq thanks a lot.
按要求操作后还是Cannot GET /categories/为什么。。有大神可以解决下吗
I Use Version hexo: 3.5.0
I tried this work
/tags/index.md
type: "tags"
/categories/index.md
type: "categories"
Most helpful comment
hexo new page "tags"Then, add this line to source/tags/index.md that was created
type: "tags"