Use table for tag list
This commit is contained in:
parent
d8238902d7
commit
a5686ff584
|
@ -13,10 +13,28 @@ generator:
|
|||
{% block title %}{{ page.title }} "{{ page.tag }}"{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h2>"{{ page.tag }}"</h2>
|
||||
<ul>
|
||||
{% for post in page.tag_posts %}
|
||||
<li><a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<h2>"{{ page.tag }}"</h2>
|
||||
|
||||
<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 %}
|
||||
<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 %}
|
||||
|
|
Reference in a new issue