Add list of all posts to Jekyll blog

I want to be able to add a list of all posts to my Jekyll blog.

The following gist shows how this can be achieved:

https://gist.github.com/erjjones/1998382

If the blog contains a lot of entries, it might be a good idea to group these entries (e.g. by month and/or year) and allow the user to expand/collapse these groups.

Written on July 23, 2017