Use <table> to organize link - count pages

main
Raymond Wanyoike 2016-11-07 10:04:00 +03:00
parent 6e56cf690d
commit d2533f8f57
3 changed files with 19 additions and 10 deletions

View File

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

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 %}

View File

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