aboutsummaryrefslogtreecommitdiffstats
path: root/uikit/templates/categories.html
diff options
context:
space:
mode:
Diffstat (limited to 'uikit/templates/categories.html')
-rw-r--r--uikit/templates/categories.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/uikit/templates/categories.html b/uikit/templates/categories.html
new file mode 100644
index 0000000..7292909
--- /dev/null
+++ b/uikit/templates/categories.html
@@ -0,0 +1,26 @@
+{% extends "index.html" %}
+{% import 'html_macros.html' as html_macros %}
+
+{% block head %}
+{{ super() }} {{ html_macros.get_meta(categories) }}
+{% endblock head %}
+{% block titlename %}{{'all the categories'|capitalize}}{% endblock titlename %}
+
+{% block content %}
+{% block heading %}
+
+
+<h1>{{'all the categories'|capitalize}}</h1>
+
+{% for category, articles in categories %}
+ <h2>
+ <span class="entity">{{ category | capitalize}}</span>
+ </h2>
+ <ul>
+ {% for article in articles|sort(reverse=True,attribute='date') %}
+ <li><a class="{% if CAPITALIZE_HEADINGS %}capitalize{% endif %}" href="/{{ article.url }}">{{ article.title }}</a></li>
+ {% endfor %}
+ </ul>
+{% endfor %}
+{% endblock heading %}
+{% endblock content %}