hexo generate 处理 #

今天在发布一篇博文的时候执行 hexo generate 发生错误,错误信息如下:

$ hexo generate
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path)
  Error: expected end of comment, got end of file

想到刚才文章内容中有 # 字符作为普通字符出现,但并没有做转义处理,包含 # 字符的内容如下:

$