12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <nav class="navbar navbar-expand-lg navbar-light bg-light">
- <a class="navbar-brand" href="/">
- <img class="invert" alt="James Peret" src="/images/jamesperet-logo-white.png">
- </a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav mr-auto">
- <% if(is_current('/projects')) { %>
- <li class="nav-item active">
- <% } else { %>
- <li class="nav-item"></li>
- <% } %>
- <a class="nav-link" href="/projects">
- Projects
- <% if(is_current('/projects')) { %>
- <span class="sr-only">(current)</span>
- <% } %>
- </a>
- </li>
- <% if(is_current('/blog')) { %>
- <li class="nav-item active">
- <% } else { %>
- <li class="nav-item"></li>
- <% } %>
- <a class="nav-link" href="/blog" >
- Blog
- <% if(is_current('/blog')) { %>
- <span class="sr-only">(current)</span>
- <% } %>
- </a>
- </li>
- <% if(is_current('/about')) { %>
- <li class="nav-item active">
- <% } else { %>
- <li class="nav-item"></li>
- <% } %>
- <a class="nav-link" href="/about" >
- About
- <% if(is_current('/about')) { %>
- <span class="sr-only">(current)</span>
- <% } %>
- </a>
- </li>
- </ul>
- </div>
- </nav>
|