winwin-hexo-editor icon indicating copy to clipboard operation
winwin-hexo-editor copied to clipboard

分类使用’category’ |support for hfm ‘category’

Open nxsmzg opened this issue 5 years ago • 7 comments

文档中设置的分类为

---
title: Hello World
category: 
  - [hello]
---

左侧显示出了hello分类,且将Hello World文章归属在其中,但 Hello World文章同时也被归属到了未分类这一分类下,而且文章编辑上方的分类却没正确显示分类,右侧的Front-matters也未能正确识别出文章中写的Front-matters image

nxsmzg avatar Jul 09 '20 06:07 nxsmzg

已收到反馈~慢慢修bug中

YuJianghao avatar Jul 09 '20 06:07 YuJianghao

frontmatter好像是categories,不是category 而且应该是不需要中括号的,你可以再试一下。我使用没问题

declan-haojin avatar Jul 09 '20 06:07 declan-haojin

根据hexo文档,应该使用categories

另,后续我也会留意category的使用情况

YuJianghao avatar Jul 09 '20 06:07 YuJianghao

frontmatter好像是categories,不是category 而且应该是不需要中括号的,你可以再试一下。我使用没问题

根据hexo文档,应该使用categories

另,后续我也会留意category的使用情况

感谢,是我写错了,改为categories分类正常显示

但写成category blog页面上也是正确显示了,请考虑是否需要支持; image

另外右侧的Front-matters还是未能正确显示 image

nxsmzg avatar Jul 09 '20 07:07 nxsmzg

看你的截图好像frontmatter里只有titlecategories,这两个肯定是不会在右侧frontmatter栏显示的。 以下是我的界面,frontmatter正常 image

declan-haojin avatar Jul 09 '20 07:07 declan-haojin

@declan-haojin 恩,你说的对

但是这个分类好像的确有问题,分类应该是可以设置多个(可以是并列,也可以是父子级),目前好像没法设置多个分类

image

nxsmzg avatar Jul 09 '20 08:07 nxsmzg

是的,目前不支持并列分类

YuJianghao avatar Jul 09 '20 09:07 YuJianghao