1. git错误提示

$ hexo g
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) [Line 10, Column 48]
  unexpected token: }}

2. 解决办法

2.1 Template render error 这是hexo转义时候发生的错误,文章中可能出现了{{}},{% %},可以将出现的代码,用 `进行注释下就可以了。

修改前:此处转义报错
{{}}

修改后:这次正确了
`{{ value }}`

2.2 官网给出的解释

hexo新建md文档推送到blog出错

3. 备注

3.1 问题虽然解决了但是页面上的`{{ }}`并没有解析出来,不知道是不是一个bug,有待深究。。。

hexo新建md文档推送到blog出错

3.2 markdown文档中有这么一段话,前面加反斜杠打印特殊字符,试过之后发现还是不行,这样反引号加反斜杠`\{\{\}\}`,打印出来是\{\{\}\},但是去掉反引号就编译报错。难道我用错了??

hexo新建md文档推送到blog出错

 3.3 好吧,各种尝试后,最终还是决定放到代码块的注释中去了!!!

相关文章:

  • 2021-07-10
  • 2021-09-09
  • 2021-10-17
  • 2021-06-08
  • 2021-10-18
  • 2022-12-23
  • 2021-09-27
猜你喜欢
  • 2021-08-04
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2021-06-26
  • 2021-04-29
  • 2021-10-22
相关资源
相似解决方案