aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-13 11:16:37 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-13 11:16:37 +0200
commit7ac72aa2676d2e5cad88a6c5a51af0ff5044d3a3 (patch)
treeb1f907e8328689bb20907e6e899d360dfb97152f /pages
parente1207c7096bbfdd514cece1f4a86fce3eba44bdf (diff)
reverse recent post so they're in the right order
Diffstat (limited to 'pages')
-rw-r--r--pages/index.tsx2
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>