Brought base.html back to a working state, although there are still minor bugs