toc-date.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <div class="book-summary">
  2. <!-- <div id="book-search-input" role="search">
  3. <input type="text" placeholder="Type to search" />
  4. </div> -->
  5. <nav role="navigation">
  6. <ul class="summary">
  7. {% if page.url == "/index.html" or page.url == "/" %}
  8. <li class="chapter active" data-level="1.1" data-path="{{site.baseurl}}">
  9. {% else %}
  10. <li class="chapter" data-level="1.1" data-path="{{site.baseurl}}">
  11. {% endif %}
  12. <a href="{{site.baseurl}}">
  13. {{ site.title | escape }}
  14. </a>
  15. </li>
  16. <li class="divider"></li>
  17. <!-- search link -->
  18. <li>
  19. <a href="{{site.baseurl}}/search">
  20. Search
  21. </a>
  22. </li>
  23. <li class="divider"></li>
  24. {% assign reversed_posts = site.posts | reverse %}
  25. {% for post in reversed_posts %}
  26. {% if page.url == post.url %}
  27. <li class="chapter active" data-level="1.2" data-path="{{site.baseurl}}{{post.url}}">
  28. {% else %}
  29. <li class="chapter" data-level="1.1" data-path="{{site.baseurl}}{{post.url}}">
  30. {% endif %}
  31. <a href="{{site.baseurl}}{{post.url}}">
  32. {{ post.title | escape }}
  33. </a>
  34. {% if site.toc.enabled %}
  35. {% if page.url == post.url %}
  36. {% include toc.html html=content h_min=site.toc.h_min h_max=site.toc.h_max %}
  37. {% endif %}
  38. {% endif %}
  39. </li>
  40. {% endfor %}
  41. <li class="divider"></li>
  42. <li>
  43. <a href="https://notabug.org/EPuters/edu.eputers.net" target="blank" class="gitbook-link">
  44. Fork it Now!
  45. </a><a href="/javascript.html" data-jslicense="1">JavaScript license information</a><br>
  46. </li>
  47. </ul>
  48. </nav>
  49. </div>