Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MOxFIVE opened this issue Nov 12, 2015 · 10 comments
Closed

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

MOxFIVE opened this issue Nov 12, 2015 · 10 comments
Labels
Milestone

Comments

@MOxFIVE
Copy link
Owner

@MOxFIVE 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

@Arondight

This comment has been minimized.

Copy link

@Arondight Arondight commented Mar 1, 2016

@MOxFIVE MOxFIVE added the hexo label May 21, 2016
@RanchoCooper

This comment has been minimized.

Copy link

@RanchoCooper RanchoCooper commented Oct 1, 2016

如何生成分类的页面呢

@LiangXianSen

This comment has been minimized.

Copy link

@LiangXianSen LiangXianSen commented Oct 5, 2016

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

@Gabrielkaliboy

This comment has been minimized.

Copy link

@Gabrielkaliboy Gabrielkaliboy commented May 21, 2017

老大,我英语不是很好,可不可以给来个中文注解。。。

@RanchoCooper

This comment has been minimized.

Copy link

@RanchoCooper RanchoCooper commented May 21, 2017

自行查单词

@Durant35

This comment has been minimized.

Copy link

@Durant35 Durant35 commented Nov 27, 2017

@Durant35

This comment has been minimized.

Copy link

@Durant35 Durant35 commented Nov 27, 2017

hexo: 3.4.2 亲测有效

  • 语法
    image
  • 分类栏
    image
  • 可以改进的地方:左下角归档根据不同分级给颜色?
    image
@EruDev

This comment has been minimized.

Copy link

@EruDev EruDev commented Mar 20, 2018

想知道怎么生成分类和标签, 可以丢个命令啥的吗

@zacSuo

This comment has been minimized.

Copy link

@zacSuo zacSuo commented Jan 16, 2019

category始终是跟tag在一起的,无法独立出来的
image

@ShaneTian

This comment has been minimized.

Copy link

@ShaneTian ShaneTian commented Feb 23, 2019

亲测可用

  1. 多分类(平行级别):
categories:
- [Linux,]
- 技术驿站

实现同一文章多个分类。

  1. 多分类(树状):
categories:
- [Linux, 技术驿站]
# 或者
categories:
- Linux
- 技术驿站

会产生层级分类结构:/categories:/Linux/技术驿站/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
9 participants
You can’t perform that action at this time.