Add truncate function for blog list