使用hexo g是报错YAMLException: can not read a block mapping entry; a multiline key may not be an implicit

文章讲述了作者在使用Hexo构建博客时遇到的YAML解析错误,涉及到multilinekey不能作为隐式键。通过添加空格解决,展示了处理此类技术问题的过程。

报错:

YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key (4:1)

 1 | title: 我的first博客测试
 2 | date: 2024-03-01 21:57:16
 3 | tags:测试一下
 4 |
-----^
    at generateError (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:183:10)
    at throwError (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:187:9)
    at readBlockMapping (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:1145:9)
    at composeNode (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:1441:12)
    at readDocument (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:1625:3)
    at loadDocuments (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:1688:5)
    at Object.load (D:\121\webpages_personal\test1\node_modules\js-yaml\lib\loader.js:1714:19)
    at parseYAML (D:\121\webpages_personal\test1\node_modules\hexo-front-matter\lib\front_matter.js:69:23)
    at
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值