toc.html 497 B

1234567891011121314
  1. <div class="bs-sidebar hidden-print affix-top" role="complementary">
  2. <ul class="nav bs-sidenav">
  3. {% for toc_item in toc %}
  4. <li class="main {% if toc_item.active %}active{% endif %}">
  5. <a href="{{ toc_item.url }}">{{ toc_item.title }}</a>
  6. <ul class="nav">
  7. {% for toc_item in toc_item.children %}
  8. <li><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
  9. {% endfor %}
  10. </ul>
  11. </li>
  12. {% endfor %}
  13. </ul>
  14. </div>