Hexo: tags not exploding on space or comma character

Created on 23 Nov 2013  路  2Comments  路  Source: hexojs/hexo

Maybe this is a n00b thang but if I use the following front matter:

tags: test one two three

  • OR -

tags: test, one, two, three

My post gets tagged "test one two three" or "test, one, two, three"

I was kinda hoping for separate tags. How do you tag a post with more than one tag?

Most helpful comment

Use yaml syntax for an array

tags:
  - test
  - one
  - two
  - three

or

tags: [test, one, two, three]

Update: github converts - to *, tried using a codeblock ;-)

All 2 comments

Use yaml syntax for an array

tags:
  - test
  - one
  - two
  - three

or

tags: [test, one, two, three]

Update: github converts - to *, tried using a codeblock ;-)

Yup, newbie error. :-D

Thanks for the YAML help.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dsaltares picture dsaltares  路  46Comments

201507 picture 201507  路  32Comments

noraj picture noraj  路  24Comments

curbengh picture curbengh  路  24Comments

tomap picture tomap  路  21Comments