aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/posts.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/_includes/posts.html b/_includes/posts.html
new file mode 100644
index 0000000..692e6ad
--- /dev/null
+++ b/_includes/posts.html
@@ -0,0 +1,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>