-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.njk
25 lines (20 loc) · 794 Bytes
/
index.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
layout: layouts/home.njk
eleventyNavigation:
key: Home
order: 1
---
<div>
<p>
My weekly newsletter with some of world's most popular stories: <a href="https://app.mailbrew.com/simplyandyg/world-news-weekly-iikYl1HTeSqa">World News Weekly</a>
<br>
<br>
Almost every post is a living document or work in progress so don't be surprised by sentence fragments and gibberish.
</p>
</div>
{% 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>