Injury causing lack of motivation

Options
Hi Everyone. I'm training for my first ever half marathon. After my sixth week, my ankles hurt so much that I can't run at all. Since I can't exercise as much, I'm finding it harder to stay motivated with my diet. Does anyone have any advise on motivation?