Hello? The purpose of the classification is to keep the information secret. Do you seriously believe that printing the info on the front page is somehow not as indictment-worthy as keeping the documents stashed away?
The reality is that what Trump did by hiding the papers was much more consistent with the spirit of classification than what the NYT did with the Pentagon papers.