added category writing for all posts

Will be used later when we implement category-based indexes for writing
and photos.