Build a beautiful and simple website in literally minutes. Demo at http://deanattali.com/beautiful-jekyll
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.5 KiB

9 years ago
9 years ago
  1. <nav class="navbar navbar-default navbar-fixed-top navbar-custom">
  2. <div class="container-fluid">
  3. <div class="navbar-header">
  4. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar">
  5. <span class="sr-only">Toggle navigation</span>
  6. <span class="icon-bar"></span>
  7. <span class="icon-bar"></span>
  8. <span class="icon-bar"></span>
  9. </button>
  10. <a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
  11. </div>
  12. <div class="collapse navbar-collapse" id="main-navbar">
  13. <ul class="nav navbar-nav navbar-right">
  14. {% for link in site.navbar-links %}
  15. {% if link[1].first %}
  16. <li class="navlinks-container">
  17. <a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
  18. <div class="navlinks-children">
  19. {% for childlink in link[1] %}
  20. {% for linkparts in childlink %}
  21. {% include navbarlink.html link=linkparts %}
  22. {% endfor %}
  23. {% endfor %}
  24. </div>
  25. </li>
  26. {% else %}
  27. <li>
  28. {% include navbarlink.html link=link %}
  29. </li>
  30. {% endif %}
  31. {% endfor %}
  32. </ul>
  33. </div>
  34. {% if site.avatar %}
  35. <div class="avatar-container">
  36. <div class="avatar-img-border">
  37. <a href="{{ site.url }} ">
  38. <img class="avatar-img" src="{{ site.avatar | prepend: site.baseurl | replace: '//', '/' }}" />
  39. </a>
  40. </div>
  41. </div>
  42. {% endif %}
  43. </div>
  44. </nav>