Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章内生成了abbrlink但是链接异常 #61

Open
EmptyDreams opened this issue Jan 20, 2022 · 1 comment
Open

文章内生成了abbrlink但是链接异常 #61

EmptyDreams opened this issue Jan 20, 2022 · 1 comment

Comments

@EmptyDreams
Copy link

有一篇博文的链接生成为了:https://.../posts/Infinity/
我检查了md文件,内部是生成了abbrlink的(2e876344)
目前只发现这一篇博文除了问题,其它都正常

@hyl-xidian
Copy link

@EmptyDreams hi 不知道两年过去了 你的问题解决了没有

这个应该是js的问题,遇到诸如2e876344e数字结尾的abbrlink,会被认为成科学计数法表示

例如: 45075e3,最终生成的html名字为450751000.html

解决方法:
在博文Front Matter的 abbrlink: 字段中,加上单引号
abbrlink: '2e876344'

我按照此思路,问题得到了解决,祝好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants