aboutsummaryrefslogtreecommitdiff
path: root/theme/templates/category.html
diff options
context:
space:
mode:
Diffstat (limited to 'theme/templates/category.html')
-rwxr-xr-xtheme/templates/category.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/theme/templates/category.html b/theme/templates/category.html
new file mode 100755
index 0000000..f476d93
--- /dev/null
+++ b/theme/templates/category.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+{% block title %}{{ SITENAME }} - {{ category}}{% endblock %}
+
+{% block content %}
+ <h2 class="page_title">Articles dans la catégorie «{{ category }}»</h2>
+ {% 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 }}
+ {% if not loop.last %}
+ <hr>
+ {% endif %}
+ </section>
+ </article>
+ {% endfor %}
+ {% endif %}
+ {% include 'navigator.html' %}
+
+ {% if CATEGORY_FEED_RSS %}
+ <a href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS % category|e}}" ><img src="../theme/images/rss.png" /></a>
+ {% endif %}
+
+ {% if CATEGORY_FEED_ATOM %}
+ <a href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM % category|e}}" ><img src="../theme/images/atom.png" /></a>
+ {% endif %}
+
+{% endblock %}