Add limit filter and add link to list

This commit is contained in:
TheThomaas 2023-11-25 13:19:27 +01:00
parent 5f7836689a
commit 0d4e992df5

View file

@ -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>