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