New poast & change poast ordering
This commit is contained in:
@@ -7,7 +7,7 @@ import FormattedDate from "../components/FormattedDate.astro";
|
||||
import { getBlogs } from "../content/blog";
|
||||
|
||||
const posts = (await getBlogs()).sort(
|
||||
(a, b) => a.data.pubDate.valueOf() - b.data.pubDate.valueOf(),
|
||||
(a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf(),
|
||||
);
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user