That wasn't great, but it was managable because everyone understood our circumstances. When I went on my own family leave as my daughter was born, and came back to new management, I shouldered a lot of blame for the project because I was the last one left (it was a series of bad technical decisions from before my time) and still overworked despite having a newborn at home.
After finally going live, even when I warned them it would be a bad idea, I was in charge of the horrible production website. I gritted my teeth and left when my daughter was 9 months old, with no job in sight because I just needed a break.
Best decision I ever made. They fired my problematic boss 3 days before I left (he was one of the new managers, not good at managing or doing his technical work) and it took months to get the production site working. No idea if the next phase went through or not.
I had a nice five month sabbatical with my family and educational projects while I interviewed. It ended up with four job offers, and I'm thrilled with the ones I chose.