This blog is published on Github Pages using a Jekyll base template called Minima. It offers no built in support for pagination, so I had to do a lot of trial-and-error, and follow a lot of advice from different people on the internet. This was particular tricky, because Minima uses a
home.html template instead of an
However, I finally achieved it by using the plugin
jekyll-paginate, and following most of the steps described here.
In summary, the steps involve:
- Invoke and configurate the plugin
- Create the file
_includes/paginator.html, with code that creates the links for adequate navigation.
- Adjust the
index.htmlfile with the correct loop for the paginated posts.
Because of the particularity of Minima, I had to further:
- Correct relative paths for links called in
home.htmlto include the correct lops for the paginated posts (as one would do with
- Fix styles in