added pagination and fixed date tags for posts