Etsy announced the layoffs along with second-quarter earnings.