--- layout: layouts/base.njk eleventyNavigation: key: Now order: 4 numberOfLatestPostsToShow: 4 --- {% set postsCount = collections.now | length %} {% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %} {% set postslist = collections.now | head(-1 * numberOfLatestPostsToShow) %} {% set postslistCounter = postsCount %} {% set morePosts = postsCount - numberOfLatestPostsToShow %}

Now: What’s Been Going on Lately?

{% set now = collections.now | last %}

{{ now.data.title }}

{{ now.content | safe }}

Updated: {{ now.date | readableDate }} | What is a now page?

{% if postsCount > 1 %}

Previous Entries:

{% for post in postslist | reverse %} {% if post.data.title != now.data.title %} {% endif %} {% endfor %}
{% if morePosts > 0 %}

See {{ morePosts }} more post{% if morePosts != 1 %}s{% endif %}.

{% endif %}
{% endif %}