Adding if statement to `sidebar.html`