Can change of diet affect cm?

Paige • Just a teen tracking my period and learning from the community.
I have had a major change of diet in a positive way, and I'm really proud of myself. The only problem is for the past two days I have noticed in the shower that my cm has been smelling bad. The smell isn't a period or fishy smell, more of a onion/garlic smell. Is something wrong or just the change of diet?