layout/skeleton/_listing.html @ 08d7552b6237
Add categories.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sat, 16 Jan 2010 14:53:38 -0500 |
parents |
62daa229e3e8 |
children |
336b9c458690 |
{% 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 %}