YuJianghao / winwin-hexo-editor

An online hexo blog editor.
https://yujianghao.github.io/winwin-hexo-editor/
GNU General Public License v3.0
27 stars 8 forks source link

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

Open fortuneju opened 4 years ago

fortuneju commented 4 years ago

文档中设置的分类为

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

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

YuJianghao commented 4 years ago

已收到反馈~慢慢修bug中

declan-haojin commented 4 years ago

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

YuJianghao commented 4 years ago

根据hexo文档,应该使用categories

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

fortuneju commented 4 years ago

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

根据hexo文档,应该使用categories

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

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

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

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

declan-haojin commented 4 years ago

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

fortuneju commented 4 years ago

@declan-haojin 恩,你说的对

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

image

YuJianghao commented 4 years ago

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