aboutsummaryrefslogtreecommitdiff
path: root/_includes/posts.html
blob: cdd9b479fa311005790b56e7200b702874816e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<link rel="stylesheet" href="style.css">

{% include search.html %}

<table id="posts" class="plainlink">
	<tr>
		<th><a href="by-date" class="{% if include.sort == "date" %}sortcolumn{% endif %}">date</a></th>
		<th><a href="by-title" class="{% if include.sort == "title" %}sortcolumn{% endif %}">title</a></th>
	</tr>
	{% assign posts = site.items | post_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>