Add post specific template data in the walkPosts function to avoid unnecessary looping.