aboutsummaryrefslogtreecommitdiffstats
path: root/dev-random/templates/categories.html
diff options
context:
space:
mode:
Diffstat (limited to 'dev-random/templates/categories.html')
-rw-r--r--dev-random/templates/categories.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/dev-random/templates/categories.html b/dev-random/templates/categories.html
new file mode 100644
index 0000000..ca9a7b1
--- /dev/null
+++ b/dev-random/templates/categories.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block title %}{{ super() }} — Catégories{% endblock title %}
+
+{%- block content %}
+ <section id="page-content">
+ <h1>Catégories</h1>
+ <ul id="category-list">
+ {% for category, n in categories %}
+ <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ n|count }} articles)</li>
+ {% endfor %}
+ </ul>
+ </section>
+{% endblock content -%}