Hexo post with several categories 文章设置多个分类后的问题 #4

Closed
MOxFIVE opened this Issue Nov 12, 2015 · 3 comments

Projects

None yet

4 participants

@MOxFIVE
Owner
MOxFIVE commented Nov 12, 2015

According to my observation, in Hexo (3.1.0), when a post is applied with several categories like below:

categories:
- Life
- Work
- Study

The post will be count ONLY in the very first set category Life, and two tree categories Life/Work and Life/Work/Study will be generated. Categories after Life will be treated as its children which can be verified in source code.

In the post, clinking Life will jump to Life category page, clinking Work will jump to Life/Works, and clicking Study will jump to Life/Work/Studys.

/categories/Life/
/categories/Life/Work/
/categories/Life/Work/Study/

为 Hexo 文章设置多个分类后,只算入第一个分类,同时 Hexo 会从当前分类列表生成类似文件夹那样的层级分类(点击文章中不同分类标记即跳转到对应层级分类页面)。

http://moxfive.xyz/tags/
https://hexo.io/docs/helpers.html#list_categories
https://hexo.io/docs/front-matter.html#Categories__26amp_3B_Tags

@MOxFIVE MOxFIVE added the question label Nov 12, 2015
@MOxFIVE MOxFIVE added a commit that closed this issue Dec 1, 2015
@MOxFIVE style: tag cloud page list_categories
Displays only top level categories.
只列出第一层级的分类。

https://hexo.io/docs/helpers.html#list_categories

Closes #4
8f00171
@MOxFIVE MOxFIVE closed this in 8f00171 Dec 1, 2015
@MOxFIVE MOxFIVE added the hexo label May 21, 2016
@MOxFIVE MOxFIVE modified the milestone: v1.0 May 21, 2016
@RanchoCooper

如何生成分类的页面呢

@LiangXianSen
LiangXianSen commented Oct 5, 2016 edited

标签云两层一样的,这么解决了,不能跳到文章目录页面 https://liangxiansen.github.io/tags/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment