Weight loss and ttc

I want to stick with a Ttc weight loss diet. I’ve done calorie count and I’m gaining weight not losing it. I need a diet that won’t hinder fertile.