mirror of
https://github.com/Techtonic-Fault/homepage.git
synced 2026-01-23 05:26:30 +00:00
Initial commit
This commit is contained in:
7
data/blog.ts
Normal file
7
data/blog.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user