added logic to index pages for each category
Merge branch 'master' into gh-pages