xmitter-11ty/index.njk
Zach Leatherman d28f834fbb Fixes #70
2020-10-16 13:06:30 -05:00

16 lines
438 B
Plaintext

---
layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
---
{% set maxPosts = collections.posts.length | min(3) %}
<h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1>
{% set postslist = collections.posts | head(-3) %}
{% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %}
<p>More posts can be found in <a href="{{ '/posts/' | url }}">the archive</a>.</p>