Hiking Prep?

So

I want to go hiking with my boyfriend in a few months but I've never hiked a day in my life. How does one even train to hike? I'm not trying to do like a thousand mile hike or anything, the trail I was thinking of doing with my bf is only like 20 miles. Does anyone have any advice for what I can do?