layout/skeleton/_listing.html @ b8301b4e1d66

Restructure tag lists to pass validation.
author Steve Losh <steve@stevelosh.com>
date Sun, 24 Jan 2010 09:53:23 -0500
parents 336b9c458690
children def464696a83
{% extends "skeleton/_base.html"%}

{% block extra_header %}{% if page.node.categories %} / {% endif %}{% endblock %}

{% block after_header %}
    {% if page.node.categories %}
        <div id="section-tags">
            <div class="section-tags-col">
            {% for category in page.node.categories.keys %}
                <p><a href="{{ page.url }}{{ category }}">{{ category }}</a></p>
                {% if forloop.counter|divisibleby:2 %}
                    {% if not forloop.last %}
                        </div><div class="section-tags-col">
                    {% endif %}
                {% endif %}
            {% endfor %}
            </div>
        </div>
    {% endif %}
{% endblock %}

{% block content %}
    <div id="section-listing">
        <ol>
            {% for node in page.node.walk reversed %}
                {% include "skeleton/_innerlisting.html" %}
            {% endfor %}
        </ol>
    </div>
{% endblock %}