Change a bit the templates to list all the article with their content by

category too.
This commit is contained in:
Alexis Metaireau 2010-09-19 22:29:56 +01:00
commit ecd9a83ac8
3 changed files with 12 additions and 8 deletions

View file

@ -9,6 +9,11 @@
<header id="banner" class="body">
<h1><a href="{{ BLOGURL }}">{{ BLOGNAME }} <strong>{{ BLOGSUBTITLE }}</strong></a></h1>
</header><!-- /#banner -->
{% if categories %}<ul>
{% for category, articles in categories %}
<li><a href="category/{{category}}.html">{{ category }}</a></li>
{% endfor %}
</ul> {% endif %}
{% block content %}
{% endblock %}
<footer id="contentinfo" class="body">

View file

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

View file

@ -1,6 +1,10 @@
{% extends "base.html" %}
{% block content %}
<section id="content">
{% block content_title %}
<h2>All articles</h2>
{% endblock %}
<ol id="post-list">
{% for article in articles %}
<li><article class="hentry">