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.

59 lines
1.9 KiB

9 years ago
9 years ago
9 years ago
9 years ago
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. {% if site.title-img %}
  11. <a class="navbar-brand navbar-brand-logo" href="{{ site.url }}"><img src="{{ site.title-img }}"/></a>
  12. {% else %}
  13. <a class="navbar-brand" href="{{ site.url }}">{{ site.title }}</a>
  14. {% endif %}
  15. </div>
  16. <div class="collapse navbar-collapse" id="main-navbar">
  17. <ul class="nav navbar-nav navbar-right">
  18. {% for link in site.navbar-links %}
  19. {% if link[1].first %}
  20. <li class="navlinks-container">
  21. <a class="navlinks-parent" href="javascript:void(0)">{{ link[0] }}</a>
  22. <div class="navlinks-children">
  23. {% for childlink in link[1] %}
  24. {% for linkparts in childlink %}
  25. {% include navbarlink.html link=linkparts %}
  26. {% endfor %}
  27. {% endfor %}
  28. </div>
  29. </li>
  30. {% else %}
  31. <li>
  32. {% include navbarlink.html link=link %}
  33. </li>
  34. {% endif %}
  35. {% endfor %}
  36. </ul>
  37. </div>
  38. {% if page.image %}
  39. <div class="avatar-container">
  40. <div class="avatar-img-border">
  41. <a href="{{ site.url }} ">
  42. <img class="avatar-img" src="{{ page.image | prepend: site.baseurl | replace: '//', '/' }}" />
  43. </a>
  44. </div>
  45. </div>
  46. {% elsif site.avatar %}
  47. <div class="avatar-container">
  48. <div class="avatar-img-border">
  49. <a href="{{ site.url }} ">
  50. <img class="avatar-img" src="{{ site.avatar | replace: '//', '/' }}" />
  51. </a>
  52. </div>
  53. </div>
  54. {% endif %}
  55. </div>
  56. </nav>