4

Hexo blog title include special symbols reports error

 9 months ago
source link: https://amonxu.com/2023/09/18/en/2023-09-03-Hexo-Title-Symbol-Error/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Hexo blog title include special symbols reports error

2023-09-18 0 Comments


In my Hexo blog, when I include special symbols inside the title in posts, it reports this error:

ERROR Process failed: _posts/en/XXX.md
YAMLException: incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line at line 1, column 54:
... for Backend System Refactoring\: How to do backend system refac ...

Solution:
Include the title in single quotes, like:

title: 'How to read a book'
lang: en
date: 2023-01-01
Amon wechat
扫一扫关注我,有惊喜不迷路
(转载本站文章请注明作者和出处: 猛猛如玉
网址: https://amonxu.com 微信公众号: itcraft
可以请我喝瓶水吗:)

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK