It’s a sharp reversal from the last two years, when layoffs fell and some news outlets even expanded.