summaryrefslogtreecommitdiff
path: root/_includes/all-posts.liquid
diff options
context:
space:
mode:
Diffstat (limited to '_includes/all-posts.liquid')
-rw-r--r--_includes/all-posts.liquid21
1 files changed, 21 insertions, 0 deletions
diff --git a/_includes/all-posts.liquid b/_includes/all-posts.liquid
new file mode 100644
index 0000000..ef05295
--- /dev/null
+++ b/_includes/all-posts.liquid
@@ -0,0 +1,21 @@
+<aside class="menu">
+ <p class="menu-label">
+ All Posts
+ </p>
+
+ <ul class="menu-list">
+ {% assign posts = collections.posts.pages | reverse %}
+ {% for post in posts %}
+ <li>
+ <a href="/{{ post.permalink }}">
+ {% if post.published_date %}
+ <span class="tag">
+ {{ post.published_date | date: "%e %b %Y" }}
+ </span>
+ {% endif %}
+ {{ post.title }}
+ </a>
+ </li>
+ {% endfor %}
+ </ul>
+</aside>