在写博客时,title如果使用了[]
,可能会引发错误。
今天在写博客时,写完使用命令hexo -g
,引发了下列错误。
YAMLException: can not read a block mapping entry; a multiline key may not be an implicit key at line 2, column 5: |
经过分析,原因出在标题title使用了 []
,比如下列会引发错误:
title: [博客] A piece of Blog |
但下列并不会引发错误:
title: A piece of Blog |
以后在写作时注意一下。
近期评论