Use table for tag list

This commit is contained in:
Oliver Davies 2017-03-10 21:06:20 +00:00
parent d8238902d7
commit a5686ff584

View file

@ -14,9 +14,27 @@ generator:
{% block content %} {% block content %}
<h2>"{{ page.tag }}"</h2> <h2>"{{ page.tag }}"</h2>
<ul>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Post Title</th>
<th>Date</th>
</tr>
</thead>
<tbody>
{% for post in page.tag_posts %} {% for post in page.tag_posts %}
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li> <tr>
<td>
<a href="{{ post.url }}">
{{ post.title }}
</a>
</td>
<td>{{ post.date|date('j F Y') }}</td>
</tr>
{% endfor %} {% endfor %}
</ul> </tbody>
</table>
</div>
{% endblock content %} {% endblock content %}