tag index generation

The tag index will be provided with a list of tags whose structure is as
follows:

{ name: 'tagname', posts: [post1, post2, post3] }

Both tags and posts are already sorted in alphabetical order.