hexo 报错YAMLException: end of the stream or a document separator is expected

$ hexo g
INFO Validating config
INFO Start processing
ERROR {
err: YAMLException: end of the stream or a document separator is expected at line 2, column 6:
title: contact
^

报错md文件如下,看似一切正常(Notepad++,UTF-8)

​---
title: tags
date: 2018-09-30 18:23:38
type: "tags"
layout: "tags"
---

文件换一个编辑器(Intellij):

。。。

原因分析:原来md文件在Typora中修改过(编码不正常),notepad++再查看没有发现问题,但 hexo g 一直报错。还是JetBrains比较厉害。

posted @ 2021-05-06 21:01  思所匪夷  阅读(231)  评论(0)    收藏  举报  来源