-
Notifications
You must be signed in to change notification settings - Fork 3k
/
Copy pathlhn-template.html
48 lines (47 loc) · 1.92 KB
/
lhn-template.html
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
<ul class="lhn-items">
<li class="home-link">
{% if include.activeHub == "home" %}
<div class="selected">Home</div>
{% else %}
<a href="/main">Home</a>
{% endif %}
</li>
{% for hub in site.data.hubs %}
{% if hub.href == include.activeHub %}
<li>
<div class="icon-with-link selected">
<i class="fa-solid fa-angle-down icon"></i>
<span>{{ hub.title }}</span>
</div>
<ul class="nested-treeview">
{% for stage in hub.stages %}
<li>
<!-- Stages may have nested articles, or they may be just a single article. -->
{% if stage.articles %}
<a href="#{{ stage.href }}">{{ stage.title }}</a>
<ul>
{% for article in stage.articles %}
<li>
<a href="/articles/{{ hub.href }}/{{ article.href }}">
{{ article.title }}
</a>
</li>
{% endfor %}
</ul>
{% else %}
<a href="/articles/{{ hub.href }}/{{ stage.href }}">{{ stage.title }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</li>
{% else %}
<li>
<a href="/hubs/{{ hub.href }}" class="icon-with-link">
<i class="fa-solid fa-angle-right icon"></i>
{{ hub.title }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>