I'm having a bit of trouble trying to make my navbar change based on what page is being viewed. I want a white navbar to display when the user is on a page in the root directory, and I want the <li> elements in my navbar to loop through pages only in the root directory.
When the user is on a page in one of my folders, I want a black navbar to display (with a different logo), and I want the <li> elements to loop through the pages only in that folder.
How should I approach this problem? Thank you so much for your time.