Simplified renderPosts method