Refactored latest posts and with a correct sort. Uses dates on posts rather than file creation dates (unreliable).
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user