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

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