Refector _getAllPosts to be an iterator instead of simply returning an array of Page instances.