diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-04-13 11:16:37 +0200 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-04-13 11:16:37 +0200 |
commit | 7ac72aa2676d2e5cad88a6c5a51af0ff5044d3a3 (patch) | |
tree | b1f907e8328689bb20907e6e899d360dfb97152f | |
parent | e1207c7096bbfdd514cece1f4a86fce3eba44bdf (diff) |
reverse recent post so they're in the right order
-rw-r--r-- | pages/index.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index f030f2c..279f1ad 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -60,7 +60,7 @@ export default function Home(props: { {index == 0 && <> <h2>Recent posts</h2> <div className='recentPosts'> - {posts.posts.slice(0, 4).map(post => { + {posts.posts.slice(0, 4).reverse().map(post => { return <PostCard post={post} />; })} </div> |