Group jekyll posts by date

I wanted to remove the plain list of blog posts and create a list that is grouped by years and months.

Code