Fixes some issues with the category handling.

This commit is contained in:
Alexis Metaireau 2010-09-16 01:49:26 +01:00
commit bd007138fa
3 changed files with 20 additions and 11 deletions

View file

@ -1,7 +1,7 @@
{% extends "base.html" %}
{% block content %}
<ul>
{% for category in categories %}
{% for category, articles in categories %}
<li>{{ category }}</li>
{% endfor %}
</ul>

View file

@ -1,8 +1,9 @@
{% extends "base.html" %}
{% block content %}
Articles in the {{ category }} category.
<ul>
{% for articles in category %}
<li><a href="{{ article.url }}">{{ article.name }}</a></li>
{% for article in articles %}
<li><a href="../{{ article.url }}">{{ article.title }}</a></li>
{% endfor %}
</ul>
{% endblock %}