Hexo: 多个 Tags 怎么分割?

Created on 3 Oct 2013  ·  9Comments  ·  Source: hexojs/hexo

用空格 和 ,分割还是会黏在一起,变成一个tags了。

Most helpful comment

請使用 YAML 格式,例如:

tags:
- 123
- 456

All 9 comments

請使用 YAML 格式,例如:

tags:
- 123
- 456

不考虑支持空格或者逗号么?

既然都已經用YAML了何必用空格或逗號...

也可以这样呀
tags: [tag1,tag2,tag3]

Tags: abc def 或者 Tags: abc, def 这种写起来比
Tags:

  • abc
  • def
    简单很多呀。。

这个不是hexo的问题,而是YAML的语法这么规定的。inline的形式之所以用[ ] 包含应该是为了保持 JSON 的形式,另外也有助于实现多层嵌套。

tags: [tag1,tag2,tag3] 这样挺好的

对新手来说,确实不知道YAML。 不过goolge一下就知道了,习惯了就好了。

感觉[tag1, tag2, tag3]这样比较直观方便

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leoli-dev picture leoli-dev  ·  3Comments

jakeg picture jakeg  ·  3Comments

enterhuiche picture enterhuiche  ·  3Comments

mashirozx picture mashirozx  ·  3Comments

19uni94 picture 19uni94  ·  3Comments