<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{{ site.url }}/">{{ site.title }}</a>
        </div>

        <div id="navbar" class="collapse navbar-collapse" role="navigation">
            <ul class="nav navbar-nav">
                <li class="{{ page.nav == 'about' ? 'active' }}">
                    <a href="{{ site.url }}/">About</a>
                </li>
                <li class="{{ page.nav == 'talks' ? 'active' }}">
                    <a href="{{ site.url }}/talks/">Talks</a>
                </li>
                <li class="{{ page.nav == 'blog' ? 'active' }}">
                    <a href="{{ site.url }}/blog/">Blog</a>
                </li>
            </ul>
        </div>{# .nav-collapse #}
    </div>
</nav>