raise post count on hopepage
parent
3e797fa3c5
commit
32a31d22d1
|
@ -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" %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue