Skip to content

Commit

Permalink
Forgot to count Article only
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans5958 committed Jan 27, 2024
1 parent 0d9c032 commit e4f39bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ blogEntries.sort((a, b) => b.data.date.getTime() - a.data.date.getTime()).slice(
<section id="articles" class="container mx-auto max-w-[1140px] mt-12 pb-12">
<h2 class="text-5xl font-bold">Articles</h2>
<p class="mt-4 mb-8">For more in-depth reading, check out articles made by yours truly.</p>
<PostPreviewGrid posts={ blogEntries.filter(post => post.data.category === 'Article' ).slice(0, 10) } />
<PaginationDummy lastPage={ Math.ceil(blogEntries.length / 10) } url='/category/article/page/2' />
<PostPreviewGrid posts={ blogEntries.filter(post => post.data.category === 'Article').slice(0, 10) } />
<PaginationDummy lastPage={ Math.ceil(blogEntries.filter(post => post.data.category === 'Article').length / 10) } url='/category/article/page/2' />
</section>

</Default>

0 comments on commit e4f39bc

Please sign in to comment.