summaryrefslogtreecommitdiff
path: root/_includes/all-posts.liquid
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-06-03 20:21:47 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-06-03 20:21:47 -0400
commit775a6ea8ed0665bcb2a3de432aca80da57184424 (patch)
tree87c852cfbc4a434955d54bd6d4bcc00f3b994e9e /_includes/all-posts.liquid
parent5f6af7ba761eef57adc2d45634fadcdd6108bb34 (diff)
parenta2a168223078198e72dbcfa6c4d755819fe07b83 (diff)
downloadcobalt-site-775a6ea8ed0665bcb2a3de432aca80da57184424.tar.xz
cobalt-site-775a6ea8ed0665bcb2a3de432aca80da57184424.zip
Merge branch 'master' into posts
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>