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

多个 Tags 怎么分割? #320

Closed
CheneyWong opened this issue Oct 3, 2013 · 9 comments

Comments

@CheneyWong
Copy link

@CheneyWong CheneyWong commented Oct 3, 2013

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

@tommy351

This comment has been minimized.

Copy link
Member

@tommy351 tommy351 commented Oct 3, 2013

請使用 YAML 格式,例如:

tags:
- 123
- 456
@CheneyWong CheneyWong closed this Oct 5, 2013
@wd

This comment has been minimized.

Copy link
Contributor

@wd wd commented Jan 12, 2014

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

@tommy351

This comment has been minimized.

Copy link
Member

@tommy351 tommy351 commented Jan 12, 2014

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

@chenall

This comment has been minimized.

Copy link
Contributor

@chenall chenall commented Jan 12, 2014

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

@wd

This comment has been minimized.

Copy link
Contributor

@wd wd commented Jan 13, 2014

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

  • abc
  • def
    简单很多呀。。
@wzpan

This comment has been minimized.

Copy link
Member

@wzpan wzpan commented Jan 13, 2014

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

@jamiesun

This comment has been minimized.

Copy link

@jamiesun jamiesun commented Oct 19, 2015

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

@jackniu81

This comment has been minimized.

Copy link

@jackniu81 jackniu81 commented Dec 10, 2015

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

@renchuqiao

This comment has been minimized.

Copy link

@renchuqiao renchuqiao commented Dec 13, 2016

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

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