aboutsummaryrefslogtreecommitdiff
path: root/_includes/posts.html
blob: 692e6ad20ede0f80ff1a87693542a97f3a69684c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<table class="plainlink" width="100%">
	<tr>
		<th><a href="by-date.html" class="{% if include.sort == "date" %}sortcolumn{% endif %}">date</a></th>
		<th><a href="by-title.html" class="{% if include.sort == "title" %}sortcolumn{% endif %}">title</a></th>
	</tr>
	{% assign posts = site.items | sort: include.sort %}
	{% for post in posts %}
	<tr>
		<td>{{ post.date | datefmt }}</td>
		<td><a href="{{ post.url }}">{{ post.title }}</a></td>
	</tr>
	{% endfor %}
</table>