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.html 2.7 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  1. {% assign sidebar = site.data.sidebars[page.sidebar].entries %}
  2. <ul id="mysidebar" class="nav">
  3. <li class="sidebarTitle">{{sidebar[0].product}} {{sidebar[0].version}}</li>
  4. {% for entry in sidebar %}
  5. {% for folder in entry.folders %}
  6. {% if folder.output contains "web" %}
  7. <li>
  8. <a href="#">{{ folder.title }}</a>
  9. <ul>
  10. {% for folderitem in folder.folderitems %}
  11. {% if folderitem.output contains "web" %}
  12. {% if folderitem.external_url %}
  13. <li><a href="{{folderitem.external_url}}" target="_blank">{{folderitem.title}}</a></li>
  14. {% elsif page.url == folderitem.url %}
  15. <li class="active"><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
  16. {% elsif folderitem.type == "empty" %}
  17. <li><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
  18. {% else %}
  19. <li><a href="{{folderitem.url | remove: "/"}}">{{folderitem.title}}</a></li>
  20. {% endif %}
  21. {% for subfolders in folderitem.subfolders %}
  22. {% if subfolders.output contains "web" %}
  23. <li class="subfolders">
  24. <a href="#">{{ subfolders.title }}</a>
  25. <ul>
  26. {% for subfolderitem in subfolders.subfolderitems %}
  27. {% if subfolderitem.output contains "web" %}
  28. {% if subfolderitem.external_url %}
  29. <li><a href="{{subfolderitem.external_url}}" target="_blank">{{subfolderitem.title}}</a></li>
  30. {% elsif page.url == subfolderitem.url %}
  31. <li class="active"><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
  32. {% else %}
  33. <li><a href="{{subfolderitem.url | remove: "/"}}">{{subfolderitem.title}}</a></li>
  34. {% endif %}
  35. {% endif %}
  36. {% endfor %}
  37. </ul>
  38. </li>
  39. {% endif %}
  40. {% endfor %}
  41. {% endif %}
  42. {% endfor %}
  43. </ul>
  44. </li>
  45. {% endif %}
  46. {% endfor %}
  47. {% endfor %}
  48. <!-- if you aren't using the accordion, uncomment this block:
  49. <p class="external">
  50. <a href="#" id="collapseAll">Collapse All</a> | <a href="#" id="expandAll">Expand All</a>
  51. </p>
  52. -->
  53. </ul>
  54. <!-- this highlights the active parent class in the navgoco sidebar. this is critical so that the parent expands when you're viewing a page. This must appear below the sidebar code above. Otherwise, if placed inside customscripts.js, the script runs before the sidebar code runs and the class never gets inserted.-->
  55. <script>$("li.active").parents('li').toggleClass("active");</script>
Tip!

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

Comments

Loading...