added code to allow excerpts of long posts