Paginate with jekyll
From the jekyll documentation
To enable pagination for your blog, add a line to the _config.yml
file that specifies how many items should be displayed per page:
You may also specify where the destination of the pagination pages:
paginate_path: "blog/page:num"
And then render the paginated posts.
Modify the index.html
and add or correct to:
And generate the pagination links:
Jekyll does not generate page 1 folder thats why I added:
condition to point the previous link to the root index.html
.
If you want to ask me a question or leave me a message add @bougui505 in your comment.