updated getBlogPost sample