swcarpentry/boot-camps — pull request #4 by wking (2012-12-20 14:05:57+00:00)
Title: _posts: Use Jekyll's _posts to avoid nested URLs

For example,

http://swcarpentry.github.com/boot-camps/pages/2012-10-caltech/

will be

http://swcarpentry.github.com/boot-camps/2012-10-23-caltech/

I've added `root` elements to the YAML front matter to avoid
hard-coding the path from each page to the website root in the
_include blurbs, so that any future restructurings will not require
altering the templates. The `root` element also allows the templates
to be used with nested websites. For example, from:

http://swcarpentry.github.com/boot-camps/2012-10-23-caltech/topic/

I've added days to the URL because Jekyll's _posts format requires
them. We could disable them in _config.yml with:

permalink: /:year-:month-:title.html

but then you have to ensure that you never hold more than one workshop
per year-month-title. Adding a day seems safer, but I would be ok
with the abbreviated form.