gollum/gollum — pull request #890 by bartkamphorst (2014-11-05 01:18:23+00:00)
Title: Do not render footers, headers and sidebars if (after formatting) they are empty. Resolves #398 .

Might benefit from refactoring, but does the job. Thoughts?