Fix sidebar, header, and footer, and add regression test.

https://github.com/gollum/gollum/commit/0965269ee97257a9d6dbb4c29bdfac228db72507 in `rc` breaks the sidebar, header, and footer.
Much nicer of course. Let's make sure to refactor that.