Skip to content

Commit 3c9500a

Browse files
committed
Refactor: Remove post limit from index generation
Removes the arbitrary limit of 16 posts displayed on the index page. This allows all available posts to be shown, improving content discoverability.
1 parent 580b0dd commit 3c9500a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

generate.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,6 @@ func generateIndex(gc *GenerationContext, lang types.Lang) error {
313313
return posts[i].Main.Metadata.Date.After(posts[j].Main.Metadata.Date)
314314
})
315315

316-
if len(posts) > 16 {
317-
posts = posts[:16]
318-
}
319-
320316
var previews []*view.BlogPostPreview
321317
for _, post := range posts {
322318
pm := post.Main.Metadata

0 commit comments

Comments
 (0)