Baby gate question

Allison

So we are obviously going to need a baby gate for the stairs, but our railing and the wall don't line up. Any thoughts on how to make a gate work here??