Skip to content

Commit

Permalink
fix(hexojs#1099): hexo server error when changing the config
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Sep 9, 2022
1 parent 4d42d9d commit 255ea82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/plugins/processor/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ function parseFilename(config, path) {
const data = permalink.parse(path);

if (data) {
return data;
if (data.title !== undefined) {
return data;
}
return Object.assign(data, {
title: slugize(path)
});
}

return {
Expand Down

0 comments on commit 255ea82

Please sign in to comment.