bug模版
- bug
- 发生日期
- 类型
- 出现过程
- 日志 log
- bug分析
- 解决办法
更新状态:持续更新中…
1.bug
发生日期
2018年1月12日下午4:11
类型
YAMLException
出现过程
将Mou编辑好的md文件“基于hexo+github搭建独立博客.md”,通过Finder移动到hexo/blog目录
日志log
1 | ERROR Process failed: _posts/基于hexo+github搭建独立博客.md |
bug分析
搜索YAMLException: end of the stream or a document separator is expected
1 | 1.https://github.com/hexojs/hexo/issues/2717 |
Front-matter is a block of YAML or JSON at the beginning of the file that is used to configure settings for your writings. Front-matter is terminated by three dashes when written in YAML or three semicolons when written in JSON.
Front-matter是在文件开头,用来配置文章设置项的YAML or JSON块,即配置元数据meta data。书写形式如下:
YAML
1 | title: Hello World |
JSON
1 | "title": "Hello World", |
解决方法
1 | 在“基于hexo+github搭建独立博客.md“文件开头添加文章设置项YAML块,主要是最后3破折号(英文版)。 |
2.bug
发生日期
2018年1月12日下午4:20
类型
YAMLException
出现过程
在“基于hexo+github搭建独立博客.md”开头,添加Front-matter YAML块
1 | --- |
日志log
1 | ERROR Process failed: _posts/基于hexo+github搭建独立博客.md |
bug分析
Front-matter YAML块的date:格式与_config.xml#dateformat不一致。
解决办法
修改为date_format: YYYY-MM-DD
time_format: HH:mm:ss