Closed ProfessorX closed 4 years ago
Update: This works OK with hexo 4.0.0 and theme-next 7.5.0 or below.
灵夫: 感觉上是
灵夫: 你对一个null变量调用了replace方法
灵夫: 要不提前判断下,传入字符串变量问题
@SukkaW
Please help refactor this js file, again. Many thanks.
虽然报错来自 external_links.js
,但这个问题实际上与 external_links.js
无关。
这个 Issue 先关了。对于标题中的百分号等特殊符号的处理,请加入这里的讨论: https://github.com/hexojs/hexo/issues/4104
Check List
Please check followings before submitting a new feature request.
Feature Request
Others
Details of the issue and bug please refer to the issue that I posted on theme-next repo.
Portal here: https://github.com/theme-next/hexo-theme-next/issues/1370
OK for clarity I will use Chinese hereafter.
在Post md文件的标题中,如果用了 “%” 英文的百分比符号,会导致在
hexo g
的时候报错。如:
一个post抬头如上所示,保存后用
hexo g
进行编译,环境:然后会报如下所示的错误:
将百分比符号去掉或者修改为中文“百分比”即可正常编译。因为我不懂js,所以没办法手工修改加 pull request.
以上,此致敬礼。