fix(v2): fix blog ordering
This commit is contained in:
parent
aee5834c8a
commit
bc83a81e2d
|
|
@ -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…
Reference in New Issue