/
_listing.html
30 lines (27 loc) · 953 Bytes
/
_listing.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
{% extends "skeleton/_base.html"%}
{% block extra_header %}{% if page.node.categories %} / {% endif %}{% endblock %}
{% block after_header %}
{% if page.node.categories %}
<ul id="section-tags">
<span class="section-tags-col">
{% for category in page.node.categories.keys %}
<li><a href="{{ page.url }}{{ category }}">{{ category }}</a></li>
{% if forloop.counter|divisibleby:2 %}
{% if not forloop.last %}
</span><span class="section-tags-col">
{% endif %}
{% endif %}
{% endfor %}
</span>
</ul>
{% endif %}
{% endblock %}
{% block content %}
<div id="section-listing">
<ol>
{% for node in page.node.walk reversed %}
{% include "skeleton/_innerlisting.html" %}
{% endfor %}
</ol>
</div>
{% endblock %}