2023-02-07 09:29:01 +00:00
|
|
|
---
|
|
|
|
title: Blog
|
|
|
|
layout: base.njk
|
2023-02-13 13:35:44 +00:00
|
|
|
pagination:
|
2023-12-26 14:35:09 +00:00
|
|
|
data: collections.posts
|
2023-02-14 17:00:01 +00:00
|
|
|
size: 5
|
2023-12-26 14:35:09 +00:00
|
|
|
reverse: true
|
2023-02-13 13:35:44 +00:00
|
|
|
---
|
2023-02-14 22:12:04 +00:00
|
|
|
<main class="wrapper-md stack-lg">
|
2023-02-14 17:00:01 +00:00
|
|
|
<h1>Blog posts</h1>
|
2023-02-13 13:35:44 +00:00
|
|
|
|
2023-08-18 09:29:44 +00:00
|
|
|
<ol class="stack-xl" role='list'>
|
2023-02-14 17:00:01 +00:00
|
|
|
{% for item in pagination.items %}
|
|
|
|
<li class="stack-xs">
|
2023-12-26 14:35:09 +00:00
|
|
|
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>
|
2023-11-29 08:34:39 +00:00
|
|
|
<time class="block" datetime="{{ item.date | rfc3339 }}">{{ item.date | dateDisplay }}</time>
|
2023-12-26 14:35:09 +00:00
|
|
|
<div class="e-content p-summary">{{ item.content | excerpt }}</div>
|
|
|
|
<a href="{{ item.url }}" class="inline-block">Read more</a>
|
2023-02-14 17:00:01 +00:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
|
|
|
<nav class="blog-nav row" data-spacing="between">
|
|
|
|
{% if pagination.href.next %}
|
|
|
|
<a href="{{ pagination.href.next }}">Older</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if pagination.href.previous %}
|
|
|
|
<a href="{{ pagination.href.previous }}">Newer</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2023-11-29 08:34:39 +00:00
|
|
|
</main>
|