Skip to content

Commit

Permalink
refactor: review
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Feb 12, 2024
1 parent a767e3e commit cb04411
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/docusaurus-plugin-content-blog/src/blogUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,10 @@ function sortBlogPosts({
};

if (typeof sortPosts === 'function') {
sortPosts({blogPosts});
const customSort = sortPosts({blogPosts});
if (customSort !== undefined) {
return customSort;
}
} else if (sortPresets[sortPosts]) {
sortPresets[sortPosts]();
}
Expand Down

0 comments on commit cb04411

Please sign in to comment.