index helper should use getPosts instead of getAllPosts