Add mechanism for conditionally displaying sidebar on pages.