2015-03-16 11:16:42 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Blog
|
2015-06-15 09:37:37 +01:00
|
|
|
generator: pagination
|
2015-06-15 09:38:09 +01:00
|
|
|
pagination:
|
2015-08-10 00:14:36 +01:00
|
|
|
max_per_page: 10
|
2016-12-29 16:32:52 +00:00
|
|
|
use: [posts]
|
2015-03-16 11:16:42 +00:00
|
|
|
---
|
2015-09-10 02:59:20 +01:00
|
|
|
{% block content %}
|
|
|
|
<h1>Blog</h1>
|
2015-06-18 17:50:37 +01:00
|
|
|
|
2018-05-21 23:16:08 +01:00
|
|
|
<ul class="list-reset">
|
2016-09-01 08:00:21 +01:00
|
|
|
{% for post in page.pagination.items %}
|
2018-05-21 23:16:08 +01:00
|
|
|
<li class="mb-12">
|
|
|
|
<h2 class="text-xl mb-1">
|
|
|
|
<a href="{{ post.url }}" class="no-underline hover:underline focus:underline text-black hover:text-grey-darker focus:text-grey-darker">
|
|
|
|
{{ post.title }}
|
|
|
|
</a>
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<p class="text-grey-dark mb-2">{{ post.date|date('j F Y') }}</p>
|
|
|
|
</div>
|
2015-03-16 11:16:42 +00:00
|
|
|
|
2017-08-06 19:31:59 +01:00
|
|
|
{% include 'post/intro-image' with { page: post } %}
|
|
|
|
|
2018-06-02 12:45:57 +01:00
|
|
|
<div class="markdown mb-4">
|
2018-04-23 21:30:24 +01:00
|
|
|
{{ post.summary|markdown }}
|
2018-03-12 19:26:05 +00:00
|
|
|
{% if post.blocks.excerpt is defined %}
|
2018-03-01 07:27:33 +00:00
|
|
|
{{ post.blocks.excerpt|markdown }}
|
|
|
|
{% else %}
|
|
|
|
{{ post.blocks.content|markdown }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2016-09-01 08:00:21 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
2015-09-10 02:59:20 +01:00
|
|
|
</ul>
|
2015-07-21 18:03:01 +01:00
|
|
|
|
2015-09-10 02:59:20 +01:00
|
|
|
{% if page.pagination.previous_page or page.pagination.next_page %}
|
2017-12-10 23:43:40 +00:00
|
|
|
<ul class="list-reset flex">
|
|
|
|
{% if page.pagination.next_page %}
|
|
|
|
<li class="w-1/2">
|
|
|
|
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">← Older posts</a>
|
2017-11-09 22:44:30 +00:00
|
|
|
</li>
|
2015-09-10 02:59:20 +01:00
|
|
|
{% endif %}
|
2017-11-09 22:44:30 +00:00
|
|
|
|
2017-12-10 23:43:40 +00:00
|
|
|
{% if page.pagination.previous_page %}
|
2018-03-01 07:39:54 +00:00
|
|
|
<li class="text-right {{ page.pagination.next_page and page.pagination.previous_page ? 'w-1/2' : 'w-full' }}">
|
2017-12-10 23:43:40 +00:00
|
|
|
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer posts →</a>
|
2017-11-09 22:44:30 +00:00
|
|
|
</li>
|
2015-09-10 02:59:20 +01:00
|
|
|
{% endif %}
|
2015-09-13 22:37:44 +01:00
|
|
|
</ul>
|
2015-09-10 02:59:20 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|