Move <main> and .sidebar markup out of PHP and into LESS

It's always bothered me that (1) these PHP functions add markup and (2) that they specifically add *Bootstrap* markup to HTML elements.

Why not move them into LESS?
space after `if`