Hiding Pages in Navbar - glitch with gh-pages

I have a discrepancy between running my jekyll site locally versus on github pages.

I’m new to Jekyll and using the minima theme. I made a bunch of sub pages for my blog, link to them from another page, and noticed that if I don’t give a page a title attribute in the front matter then it won’t show up in the navbar (exactly what I want). I am using my mac as a local server as I develop my website and blog.

The problem is that when I deploy to github pages, the subpages are appearing in the navbar and it looks very cluttered since those pages were not meant to be in the navbar. Anybody know of another way to easily prevent a page from appearing in the navbar?

Thanks!

You can explicitly define the navigation with header_pages in _config.yml: