如何正确的添加tags和categories
在.md文件上面的那一部分内容是Front-matter,用于指定个别文件的变量.
需要注意
- 必须在最前面:must be the first thing in the file
- 必须要三条杠!三条杠=.= 醉了:must take the form of valid YAML set between triple-dashed lines
- UTF-8编码的时候不能有BOM:make sure that no BOM header characters exist in your files
书归正传:1
2
3
4
5categories:
- Diary
tags:
- PS3
- Games
在Hexo中其实还可以用json格式:
JSON Front-matter,除了 YAML 外,你也可以使用 JSON 来编写 Front-matter,只要将 — 代换成 ;;; 即可。
1
2
3 "title": "Hello World",
"date": "2013/7/13 20:46:25"
;;;
参考文档
Front-matter的文档
YAML-Lists
在Hexo中使用front-matter
Hexo文档还没有一个主题配置文档写得详细,真是够了=.=