vuepress / vuepress-plugin-blog

Official blog plugin for VuePress
https://vuepress-plugin-blog.billyyyyy3320.com/
MIT License
181 stars 63 forks source link

Post title start with number has prefixed underscore in post slug #74

Open ariona opened 4 years ago

ariona commented 4 years ago

Bug report

Steps to reproduce

When the post title start with a number, this slug is started with underscore. for example if i have this file 2020-05-05-5-problem-solving-for-frontend-developer.md. The slug url will be:

http://example.com/_5-problem-solving-for-frontend-developer

What is expected?

The slug is not prefixed with underscore with post title started with number:

http://example.com/5-problem-solving-for-frontend-developer

What is actually happening?

The slug is prefixed with underscore:

http://example.com/_5-problem-solving-for-frontend-developer

Other relevant information

billyyyyy3320 commented 4 years ago

It's relevant to how VuePress itself generate permalink. I'll look into it when I'm free. In the meantime, you can transfer this issue to VuePress so that there're might be more people can help you.