added truncate method on blog post