There are quite a few changes in Bootstrap 4 (it’s SASS rather than LESS for a start!).
One of these changes is the navbar. Here’s the markup for the basic navbar on this page:
New in Bootstrap 4
nav-item class on the li elements
nav-link class on the nav links themselves
I’m still digging in to Bootstrap - I intend to add more navbar fragments as I build them.
One thing to note is that the navbar doesn’t yet collapse at mobile views.
This is a Jekyll site, so I build the navbar shown above like this:
Jekyll will then render the final HTML as shown above.