Add limit filter and add link to list
This commit is contained in:
parent
5f7836689a
commit
0d4e992df5
|
|
@ -10,5 +10,7 @@ layout: base
|
|||
<article>
|
||||
<h2>{{ blog.title }}</h2>
|
||||
|
||||
{% set postslist = collections.posts.slice(0, 4) %} {% include "partials/posts-light.njk" %}
|
||||
{% set postslist = collections.posts | limit(4) %} {% include "partials/posts.njk" %}
|
||||
|
||||
<a href="/blog/">View all posts →</a>
|
||||
</article>
|
||||
|
|
|
|||
Loading…
Reference in a new issue