--- layout: base title: Blog description: 'All blog posts can be found here' pagination: data: collections.allPosts size: 8 permalink: 'blog/{% if pagination.pageNumber >=1 %}page-{{ pagination.pageNumber + 1 }}/{% endif %}index.html' ---

{{ title }}

{% svg "divider/edgy", null, "seperator" %}

This blog has a pagination of {{ pagination.size }} posts per page.
The pagination is only shown if there are more posts ({{ collections.posts.length }}) than items per page ({{ pagination.size }}).

{% asyncEach item in pagination.items %} {% set definedDate = item.date %} {% include "partials/card-blog.njk" %} {% endeach %} {% set collectionToPaginate = collections.posts %} {% set metaKey = "blog" %} {% if collectionToPaginate.length > pagination.size %} {% include 'partials/pagination.njk' %} {% endif %}