Refactor site index page assembly.

Introduce a dedicated layout for index/collection pages
(layout-index.html) and move cumbersome post-looping logic out of
index.md and into layout-index.html. Markdown files should contain clean
content without excessive amounts of templating code.