New poast & change poast ordering

This commit is contained in:
2024-03-12 18:15:50 +00:00
parent 5e0d4ffef5
commit 8ae61bea68
3 changed files with 57 additions and 2 deletions

View File

@@ -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(),
);
---