_includes/header/nav-menu.html in best-blogging-theme-0.1.2 vs _includes/header/nav-menu.html in best-blogging-theme-0.1.3

- old
+ new

@@ -1,5 +1,6 @@ +{%- assign navBarData = site.data.blog.nav.navItems -%} <nav class="navbar navbar-expand-lg navbar-light"> <div class="container-fluid p-0"> {%- assign navbar = site.data.blog.nav -%} {% if navbar.navbarBrandText != "" %} <a class="navbar-brand" href="/" title="{{navbar.navbarBrandText}}">{{navbar.navbarBrandText}}</a> @@ -15,24 +16,18 @@ <div class="transforming-bars"></div> </div> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav me-auto mb-2 mb-lg-0 navbar__nav"> - {%- for item in site.data.blog.nav.navItems -%} + {%- for item in navBarData -%} <li class="nav-item"> <a class="nav-link" href="/{{item.url}}">{{item.name}}</a> </li> {% endfor %} + + <li class="nav-item"> + {% include search-lunr.html %} + </li> </ul> </div> - - <form action=""> - <input type="text" class="form-control" placeholder="Serach" - style="border-bottom: 1px solid; - border-left:none; border-right:0; border-top:none; - border-radius: 5px; - - - "> - </form> </div> </nav> \ No newline at end of file