implements truncating of post bodies on the index page