crimsontome.com/index.njk

16 lines
445 B
Plaintext
Raw Normal View History

2021-10-15 22:30:12 +01:00
---
layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
---
2022-09-04 17:18:35 +01:00
{% set maxPosts = collections.posts.length | min(5) %}
2021-10-15 22:30:12 +01:00
<h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1>
2022-09-04 17:18:35 +01:00
{% set postslist = collections.posts | head(-5) %}
2021-10-15 22:30:12 +01:00
{% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %}
<p>More posts can be found in <a href="{{ '/posts/' | url }}">the archive</a>.</p>
2022-02-12 15:38:38 +00:00
<p></p>