Move posts from Wordpress to physical markdown

This commit is contained in:
Lewis Dale committed 2023-12-26 14:35:09 +00:00
1 parent e828f9f590
commit c8c5981bd3
147 files changed
+6219 -98

No files matched your search

+5 -4
View File
@@ -2,8 +2,9 @@
title: Blog
layout: base.njk
pagination:
data: posts
data: collections.posts
size: 5
reverse: true
---
<main class="wrapper-md stack-lg">
<h1>Blog posts</h1>
@@ -11,10 +12,10 @@ pagination:
<ol class="stack-xl" role='list'>
{% for item in pagination.items %}
<li class="stack-xs">
<h2><a href="/post/{{ item.slug }}">{{ item.title.rendered | safe }}</a></h2>
<h2><a href="{{ item.url }}">{{ item.data.title | safe }}</a></h2>
<time class="block" datetime="{{ item.date | rfc3339 }}">{{ item.date | dateDisplay }}</time>
{{ item.excerpt.rendered | safe }}
<a href="/post/{{ item.slug }}" class="inline-block">Read more</a>
<div class="e-content p-summary">{{ item.content | excerpt }}</div>
<a href="{{ item.url }}" class="inline-block">Read more</a>
</li>
{% endfor %}
</ol>