Refactored latest posts and with a correct sort. Uses dates on posts rather than file creation dates (unreliable).

This commit is contained in:
Zach Leatherman
2018-09-30 00:09:09 -05:00
parent e2028fd551
commit 2402ba4887
7 changed files with 16 additions and 8 deletions

View File

@@ -5,9 +5,9 @@ tags:
navtitle: Home
---
<h1>Latest 2 blog posts</h1>
<h1>Latest 3 Posts</h1>
{% set postslist = collections.posts | head(2) %}
{% set postslist = collections.posts | head(-3) %}
{% include "postslist.njk" %}
<p>More posts can be found in <a href="/posts/">the blog archive</a>.</p>
<p>More posts can be found in <a href="/posts/">the archive</a>.</p>