diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2013-05-08 19:50:04 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2013-05-08 19:50:04 +0200 |
commit | f49b1351160e2a309f57bca1e429077b1949a8ec (patch) | |
tree | 649d91d7c3688272e4485fc88cddd2f6a36b50c6 /theme/templates/category.html | |
parent | 5bd3c5ca95731e81ceaabedc04367e832ffbf5bb (diff) |
Use uniform template for index category and tag page
Diffstat (limited to 'theme/templates/category.html')
-rwxr-xr-x | theme/templates/category.html | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/theme/templates/category.html b/theme/templates/category.html index a541a1c..f3588eb 100755 --- a/theme/templates/category.html +++ b/theme/templates/category.html @@ -5,18 +5,11 @@ <h1 class="page_title">Articles dans la catégorie « {{ category }} »</h1> {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %} - <article class="post"> - <h2 class="title"><a href="{{ SITEURL }}/{{ article.url}}">{{ article.title }}</a></h2> - <time class="meta" datetime="{{ article.date.isoformat() }}" pubdate="pubdate">{{ article.locale_date }}</time> - - <section class="post_content"> - {{ article.summary }} - <div class="clear" /> + {% import 'abstract.html' as abstract with context %} + {{ abstract.abstract(article, "h2") }} {% if not loop.last %} <hr> {% endif %} - </section> - </article> {% endfor %} {% endif %} {% include 'navigator.html' %} |