summaryrefslogtreecommitdiff
path: root/_includes/posts-recent.liquid
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-06-15 21:51:00 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-06-15 21:51:00 -0400
commitb9f1e7a0a1142d3060e2a3a020282eb5dca8f86a (patch)
treeac8b465789b18d61765be70b48ddf37f37cbc569 /_includes/posts-recent.liquid
parent402decfde5390d1c84a0a5dd74635de3d7c634c2 (diff)
downloadcobalt-site-b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a.tar.xz
cobalt-site-b9f1e7a0a1142d3060e2a3a020282eb5dca8f86a.zip
Broke out post links, organized _includes.
Diffstat (limited to '_includes/posts-recent.liquid')
-rw-r--r--_includes/posts-recent.liquid15
1 files changed, 15 insertions, 0 deletions
diff --git a/_includes/posts-recent.liquid b/_includes/posts-recent.liquid
new file mode 100644
index 0000000..8aae606
--- /dev/null
+++ b/_includes/posts-recent.liquid
@@ -0,0 +1,15 @@
+<div class="columns is-centered is-multiline">
+ <p class="menu-label has-text-centered">
+ Recent Posts
+ </p>
+
+ <!-- Basically limit length of posts array to the max number of recent
+ posts to include. To start with all posts are shown since it isn't really a
+ performance concern. -->
+ {% assign posts = collections.posts.pages %}
+ {% for post in posts %}
+ <div class="column is-full">
+ {% include post-card.liquid %}
+ </div>
+ {% endfor %}
+</div>