function to auto generate excerpts from content