diff options
Diffstat (limited to 'Peli-Kiera/templates/categories.html')
-rw-r--r-- | Peli-Kiera/templates/categories.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Peli-Kiera/templates/categories.html b/Peli-Kiera/templates/categories.html new file mode 100644 index 0000000..faaac26 --- /dev/null +++ b/Peli-Kiera/templates/categories.html @@ -0,0 +1,17 @@ +{% extends "base.html" %} + +{% block title %}{{ SITENAME }} - Categories{% endblock %} + +{% block content %} + <main> + <section id="list"> + <h2>Number of Articles for Category </h2> + <ul> + {% for category, articles in categories|sort %} + <li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a> ({{ articles|count }})</li> + {% endfor %} + </ul> + </section> + </main> +{% endblock %} + |