formatting posts index