xmitter-11ty/en/index.njk

22 lines
574 B
Plaintext
Raw Normal View History

2018-01-16 22:08:47 -05:00
---
layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
2018-01-16 22:08:47 -05:00
---
2020-10-16 14:06:30 -04:00
{% set maxPosts = collections.posts.length | min(3) %}
<h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1>
{% set postslist = collections.posts | head(-3) %}
2020-01-02 22:51:24 -05:00
{% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %}
2018-09-30 01:15:28 -04:00
<p>More posts can be found in <a href="{{ '/posts/' | url }}">the archive</a>.</p>
<ul>
{%- for entry in collections.all %}
<li><a href="{{ entry.url }}"><code>{{ entry.url }}</code></a></li>
{%- endfor %}
</ul>