Update index recent post count
This commit is contained in:
parent
541a66d37d
commit
46b042d5b2
@ -3,7 +3,7 @@ layout: layouts/home.njk
|
|||||||
eleventyNavigation:
|
eleventyNavigation:
|
||||||
key: Home
|
key: Home
|
||||||
order: 1
|
order: 1
|
||||||
numberOfLatestPostsToShow: 3
|
numberOfLatestPostsToShow: 10
|
||||||
---
|
---
|
||||||
{% set postsCount = collections.posts | length %}
|
{% set postsCount = collections.posts | length %}
|
||||||
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
|
{% set latestPostsCount = postsCount | min(numberOfLatestPostsToShow) %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user