Use <table> to organize link - count pages

This commit is contained in:
Raymond Wanyoike 2016-11-07 10:04:00 +03:00
commit d2533f8f57
3 changed files with 19 additions and 10 deletions

View file

@ -9,9 +9,12 @@ Categories
{% endblock %}
{% block content %}
<ul class="list-unstyled">
{% for category, articles in categories %}
<li><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></li>
<table class="table table-bordered table-striped table-hover">
{% for category, articles in categories|sort %}
<tr>
<td><a href="{{ SITEURL }}/{{ category.url }}">{{ category }}</a></td>
<td>{{ articles|count }}</td>
</tr>
{% endfor %}
</ul>
</table>
{% endblock %}