Hexo-theme-next: 生成标签云之后,仍然是Cannot GET /tags/

Created on 17 Sep 2015  ·  6Comments  ·  Source: iissnan/hexo-theme-next

生成标签云之后,仍然是Cannot GET /tags/

https://github.com/iissnan/hexo-theme-next/wiki/%E5%88%9B%E5%BB%BA%E6%A0%87%E7%AD%BE%E4%BA%91%E9%A1%B5%E9%9D%A2

我按照标准的标签云生成,然后tags文件下还是没有index.html

Most helpful comment

hexo new page "tags"

Then, add this line to source/tags/index.md that was created

type: "tags"

All 6 comments

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

type: "categories"

注意:如果有启用多说 或者 Disqus 评论,默认页面也会带有评论。需要关闭的话,请添加字段 comments 并将值设置为 false,如:

title: 分类
date: 2014-12-22 12:39:04
type: "categories"

comments: false

在菜单中添加链接。编辑主题的 _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

type: "tags"

注意:如果有启用多说 或者 Disqus 评论,默认页面也会带有评论。需要关闭的话,请添加字段 comments 并将值设置为 false,如:

title: All tags
date: 2014-12-22 12:39:04
type: "tags"

comments: false

在菜单中添加链接。编辑主题的 _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"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YorksonChang picture YorksonChang  ·  3Comments

chy9002 picture chy9002  ·  3Comments

DVD0423 picture DVD0423  ·  3Comments

keltoy picture keltoy  ·  3Comments

jwwangchn picture jwwangchn  ·  3Comments