This jekyll plugin generates archive pages for all months that posts used.
Download
https://github.com/xinpascal/jekyll-plugins
Usage
Place the files in the _plugins and _layouts directories into your jekyll directory.
This example shows how to list these category pages.
1 <ul>
2 {% assign months = '' %}
3 {% for post in site.posts %}
4 {% capture month %}{{ post.date | date: "%Y-%m" }}{% endcapture %}
5 {% unless months contains month %}
6 {% capture months %}{{ months }} {{ month }}{% endcapture %}
7 <li><a href="/archives/{{ month }}">{{ month }}</a></li>
8 {% endunless %}
9 {% endfor %}
10 </ul>