I'd carry on training legs, just be weary that if you do too much it'll hinder your hour ride the next day. I've found doing squats has helped my cycling (especially on hills).
I'd make sure you get some carbs in you when you finish your ride so you can recover properly for the next journey.
If its only a 30 minute ride each way (before and after work) you should be fine to carry on training how you have been.