Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sidebar-guides.html 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  1. <ul class="sidebar-categories">
  2. {% for category in product[1].categories %}
  3. <li class="sidebar-category {% if breadcrumbs.category.href == category[1].href %}active{% endif %}">
  4. <a href="{{category[1].href}}">{{ category[1].title }}</a>
  5. <!-- some categories have topics with child articles -->
  6. {% if category[1].maptopics %}
  7. <ul class="sidebar-maptopics">
  8. {% for maptopic in category[1].maptopics %}
  9. <li class="sidebar-maptopic {% if breadcrumbs.maptopic.href == maptopic[1].href %}active{% endif %}">
  10. <a href="{{maptopic[1].href}}">{{ maptopic[1].title }}</a>
  11. <ul class="sidebar-articles">
  12. {% for article in maptopic[1].articles %}
  13. <li class="sidebar-article {% if currentPath == article[1].href %}active{% endif %}">
  14. <a href="{{article[1].href}}">{{ article[1].title }}</a>
  15. </li>
  16. {% endfor %}
  17. </ul>
  18. </li>
  19. {% endfor %}
  20. </ul>
  21. <!-- some categories have no maptopics, only articles -->
  22. {% else %}
  23. <ul class="sidebar-articles">
  24. {% for article in category[1].articles %}
  25. <li class="sidebar-article{% if currentPath == article[1].href %} active{% endif %}">
  26. <a href="{{article[1].href}}">{{ article[1].title }}</a>
  27. </li>
  28. {% endfor %}
  29. </ul>
  30. {% endif %}
  31. </li>
  32. {% endfor %}
  33. </ul>
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...