added links to categories and extracted post display to partial