diff options
Diffstat (limited to 'dev-random/templates/categories.html')
-rw-r--r-- | dev-random/templates/categories.html | 14 |
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..0a5b0f4 --- /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 class="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 -%} |