implements truncation of post body on index page