raise post count on hopepage

main
CrimsonTome 2022-09-04 16:18:35 +00:00 committed by Matt Clark
parent 3e797fa3c5
commit 32a31d22d1
1 changed files with 2 additions and 2 deletions

View File

@ -4,10 +4,10 @@ eleventyNavigation:
key: Home key: Home
order: 1 order: 1
--- ---
{% set maxPosts = collections.posts.length | min(3) %} {% set maxPosts = collections.posts.length | min(5) %}
<h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1> <h1>Latest {% if maxPosts == 1 %}Post{% else %}{{ maxPosts }} Posts{% endif %}</h1>
{% set postslist = collections.posts | head(-3) %} {% set postslist = collections.posts | head(-5) %}
{% set postslistCounter = collections.posts | length %} {% set postslistCounter = collections.posts | length %}
{% include "postslist.njk" %} {% include "postslist.njk" %}