mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 21:16:59 +02:00
fix(v2): fix blog ordering
This commit is contained in:
parent
aee5834c8a
commit
bc83a81e2d
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class DocusaurusPluginContentBlog {
|
|||
blogMetadata.push(metadata);
|
||||
}),
|
||||
);
|
||||
blogMetadata.sort((a, b) => a.date - b.date);
|
||||
blogMetadata.sort((a, b) => b.date - a.date);
|
||||
|
||||
// Blog page handling. Example: `/blog`, `/blog/page1`, `/blog/page2`
|
||||
const numOfBlog = blogMetadata.length;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue