hide sidebar when navigating to non-code sites