# Jekyll archive page generator with pagination. # # Based on the category generator from # http://recursive-design.com/projects/jekyll-plugins/, # which is copyright (c) 2010 Dave Perrett, # http://recursive-design.com/ and is licensed under the MIT # license (http://www.opensource.org/licenses/mit-license.php), and # on the pagination code from Jekyll itself. # # This code is copyright (c) 2011 Benjamin Curtis, and is licensed # under the MIT license. # # A generator that creates archive pages for jekyll sites. # # To use it, simply drop this script into the _plugins directory of your Jekyll site. You should # also create a file called 'archive_index.html' in the _layouts directory of your jekyll site # with the following contents (note: you should remove the leading '# ' characters): # # ================================== COPY BELOW THIS LINE ================================== # --- # layout: default # --- # # {% for post in paginator.posts %} # {% include post.html %} # {% endfor %} # # # ================================== COPY ABOVE THIS LINE ================================== # # You can alter the _layout_ setting if you wish to use an alternate layout, and obviously you # can change the HTML above as you see fit. # # When you compile your jekyll site, this plugin will loop through the list of archives in your # site, and use the layout above to generate a page for each one with a list of links to the # individual posts. # # Included filters : # - archive_links: Outputs the list of archives as tags for use in the # - archive_selects: Outputs the list of archives as } end end end end