lewisdale.dev/src/blog/index.html

31 lines
981 B
HTML
Raw Normal View History

---
title: Blog
layout: base.njk
2023-02-13 13:35:44 +00:00
pagination:
data: collections.posts
2023-02-14 17:00:01 +00:00
size: 5
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">
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>
2023-12-30 15:38:09 +00:00
<time class="block" datetime="{{ item.date | dateToRfc3339 }}">{{ item.date | dateDisplay }}</time>
<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>