Fix sidebar, header, and footer, and add regression test.
Merge pull request #895 from repotag/rc_fix_sidebar

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