mirror of
https://github.com/Fluffy-Bean/website.git
synced 2024-12-28 02:16:10 +00:00
Merge branch 'main' into deepsource-transform-36a8a0f8
This commit is contained in:
commit
9eb5dd22ef
|
@ -7,7 +7,7 @@ export async function getPosts(collection: keyof ContentEntryMap) {
|
||||||
});
|
});
|
||||||
return posts.sort((a, b) =>
|
return posts.sort((a, b) =>
|
||||||
a.data.pubDate && b.data.pubDate
|
a.data.pubDate && b.data.pubDate
|
||||||
? +b.data.pubDate - +a.data.pubDate
|
? Number(b.data.pubDate) - Number(a.data.pubDate)
|
||||||
: 0,
|
: 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue