diff options
Diffstat (limited to '_includes/posts-recent.liquid')
-rw-r--r-- | _includes/posts-recent.liquid | 15 |
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> |