MOxFIVE / hexo-theme-yelee

简而不减 Hexo 双栏博客主题; Another simple and elegant theme for Hexo.
http://moxfive.xyz/
1.38k stars 328 forks source link

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

Closed MOxFIVE closed 8 years ago

MOxFIVE commented 8 years ago

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 commented 8 years ago

hexo #1787

RanchoCooper commented 8 years ago

如何生成分类的页面呢

llianc62 commented 7 years ago

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

Gabrielkaliboy commented 7 years ago

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

RanchoCooper commented 7 years ago

自行查单词

Durant35 commented 6 years ago

Waiting for https://github.com/danieljsummers/hexo/commit/62cbd3f3eda1852c0c6814f1cb3d6202dd071258 merged!!!

https://github.com/hexojs/hexo/issues/848

Durant35 commented 6 years ago

hexo: 3.4.2 亲测有效

EruDev commented 6 years ago

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

zacSuo commented 5 years ago

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

ShaneTian commented 5 years ago

亲测可用

  1. 多分类(平行级别):

    categories:
    - [Linux,]
    - 技术驿站

    实现同一文章多个分类。

  2. 多分类(树状):

    categories:
    - [Linux, 技术驿站]
    # 或者
    categories:
    - Linux
    - 技术驿站

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