add truncate helper for post.content