forked from mattmakai/fullstackpython.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdesktop-toc.html
More file actions
15 lines (15 loc) · 766 Bytes
/
desktop-toc.html
File metadata and controls
15 lines (15 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<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] %}<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>
{% endif %}
{% endif %}
{% endfor %}
<a href="/table-of-contents.html" class="lgi">...or view the full table of contents.</a>
</div>
</div>