-
Notifications
You must be signed in to change notification settings - Fork 633
/
Copy pathdesktop-toc.html
16 lines (16 loc) · 1.04 KB
/
desktop-toc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="pn" id="full-toc">
<div class="pnh">
<h3><a href="/table-of-contents.html">Table of Contents</a></h3>
</div>
<div class="lg">
{% for p in pages|sort(attribute='sortorder') %}
{% if p %}
{% if p.toc == "True" %}<a href="/{{ p.slug }}.html" class="lgi {% if page and p.slug == page.slug %}active{% endif %}">{{ p.sidebartitle }}</a>
{% elif p.sortorder[0:2] == page.sortorder[0:2] and not p.sortorder[0:2] == '50' %}<a href="/{{ p.slug }}.html" class="lgi{% if p.slug == page.slug %} active{% endif %} {% if p.sortorder[0:2]|int > 9 and p.sortorder[2:4]|int > 1 %}sbc2{% else %}sbc{% endif %}">{{ p.sidebartitle }}</a>
{% elif p.sortorder[0:2] == '50' %}{% if p.sortorder[2:5] == page.sortorder[2:5] %}<a href="/{{ p.slug }}.html" class="lgi{% if p.slug == page.slug %} active{% endif %}{% if not p.sortorder[5:8] == '000' %} sbc{% endif %}">{{ p.sidebartitle }}</a>{% endif %}
{% endif %}
{% endif %}
{% endfor %}
<a href="/table-of-contents.html" class="lgi">...or view the full table of contents.</a>
</div>
</div>