Clay Harmon Blog Just another internet ASCII hole

Jekyll and collections

This post is almost more of a note to myself as it some grand expository essay.

Recently, Jekyll had its 3.0 release, which includes robust support for what are called collections. This feature allows a static site creator to lump similar-but-different objects into folder that can then by accessed by templates in much the same way that posts are accessed.

The trick on this is to create the YAML front matter for the post so that it will generate an index.html inside the collections folder and allow navigation using mysite.com/mycollection/ instead of mysite.com/mycollection.html

---
title : mycollection
layout: mycollection-layout
permalink: /mycollection/
---