mirror of
https://github.com/Techtonic-Fault/homepage.git
synced 2026-01-23 05:26:30 +00:00
7 lines
242 B
TypeScript
7 lines
242 B
TypeScript
import { parsePostDate } from "@/lib/blog";
|
|
import { allPosts } from "content-collections";
|
|
|
|
const blogPosts = allPosts.sort((a, b) => {
|
|
return parsePostDate(b.date).getTime() - parsePostDate(a.date).getTime();
|
|
});
|
|
export default blogPosts; |