Blog posts
- {posts.map((post) => (
-
-
-
-
-
{post.frontmatter.title}
-
{post.frontmatter.summary}
-
- Read more
-
-
-
-
-
- ))}
+ {
+ posts
+ .sort((a, b) => b.data.publishedAt.valueOf() - a.data.publishedAt.valueOf())
+ .map((post) => (
+
+
+
+
+
{post.data.title}
+
{post.data.summary}
+
+ Read more
+
+
+
+
+
+ ))
+ }