nav.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <div id="fixed_header" class="fixedHeaderContainer{% if include.alwayson %} visible{% endif %}">
  2. <div class="headerWrapper wrapper">
  3. <header>
  4. <a href="{{ '/' | absolute_url }}">
  5. <img src="{{ '/static/logo.svg' }}">
  6. <h2>{{ site.title }}</h2>
  7. </a>
  8. <div class="navigationWrapper navigationFull" id="flat_nav">
  9. <nav class="navigation">
  10. <ul>
  11. {% for item in site.data.nav %}
  12. <li class="navItem{% if page.collection == item.category or page.category == item.category %} navItemActive{% endif %}">
  13. {% if item.category == "external" %}
  14. <a href="{{ item.href }}">{{ item.title }}</a>
  15. {% else %}
  16. {% comment %}
  17. I removed `relative_url` from here for now until the problem we are having with
  18. GitHub pages is resolved. Yes, I know this is exactly the same as the if above.
  19. See: https://github.com/facebook/rocksdb/commit/800e51553ee029f29581f7f338cbc988c7f6da62
  20. {% endcomment %}
  21. <a href="{{ item.href }}">{{ item.title }}</a>
  22. {% endif %}
  23. </li>
  24. {% endfor %}
  25. {% if site.searchconfig %}
  26. {% include nav_search.html inputselector="search_input" %}
  27. {% endif %}
  28. </ul>
  29. </nav>
  30. </div>
  31. <div class="navigationWrapper navigationSlider" id="navigation_wrap">
  32. {% include nav/header_nav.html %}
  33. </div>
  34. </header>
  35. </div>
  36. </div>