add post-indices by category

I thought it'd be nice to easily make pages (based on ```post-index.html```) that would summarize only the posts marked with a certain category.
For example, a PhD student (like myself) might have a page for teaching and research related posts, respectively.

Hope the code isn't too inelegant.

If ```page.category```is non-existent, everything stays as is.