hexo
hexo copied to clipboard
fix(#1099): hexo server error when changing the config
What does it do?
Fix #1099.
When new_post_name
lacks :title
, new_post_name
is used as the slug.
Screenshots
None.
Pull request tasks
- [x] Add test cases for the changes.
- [x] Passed the CI test.
How to test
git clone -b new_feature https://github.com/D-Sketon/hexo.git
cd hexo
npm install
npm test
Coverage decreased (-0.05%) to 98.329% when pulling 255ea82f9204c445573ce03dd9c680914df2586f on D-Sketon:new_feature into 4d42d9d9345514828e60f5987fc054e9bedcac7b on hexojs:master.
Could you please add test cases for the changes?
@renbaoshuo New test cases have been added