diff options
Diffstat (limited to 'waterspill/templates/categories.html')
-rw-r--r-- | waterspill/templates/categories.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/waterspill/templates/categories.html b/waterspill/templates/categories.html new file mode 100644 index 0000000..b32f5cb --- /dev/null +++ b/waterspill/templates/categories.html @@ -0,0 +1,18 @@ +{% extends "base.html" %} +{% block content %} + +<div class="blogItem"> + {% if articles %} + {% for article in articles %} + {% if loop.index == 1 %} + <ul> + {% for category, articles in categories %} + <li>{{ category }}</li> + {% endfor %} + </ul> + {% endif %} + {% endfor %} + {% endif %} + </div> + +{% endblock %} |