added findTemplate function for blog posts