diff --git a/src/components/homepage/BlogPosts.astro b/src/components/homepage/BlogPosts.astro
index 3e560bb..fe2cc2b 100644
--- a/src/components/homepage/BlogPosts.astro
+++ b/src/components/homepage/BlogPosts.astro
@@ -15,8 +15,7 @@ const publishedBlogPosts = await getCollection("blog", ({ data }) => {
{
- publishedBlogPosts.map((post) => {
- console.log("hello");
+ publishedBlogPosts.sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime()).map((post) => {
return (
{
return data.draft !== true;
});
+
+
---
-
-
- Blog posts
-
-
-
+
Blog posts
+
+
{
- publishedBlogPosts.map((post) => {
+ publishedBlogPosts.sort((a, b) => b.data.publishDate.getTime() - a.data.publishDate.getTime()).map((post) => {
return (