2015-03-16 11:16:42 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Blog
|
2015-06-15 08:37:37 +00:00
|
|
|
generator: pagination
|
2015-06-15 08:38:09 +00:00
|
|
|
pagination:
|
|
|
|
max_per_page: 5
|
2015-03-19 11:36:09 +00:00
|
|
|
use:
|
2015-06-14 02:27:41 +00:00
|
|
|
- posts
|
2015-03-16 11:16:42 +00:00
|
|
|
---
|
2015-06-18 16:50:37 +00:00
|
|
|
{% block body_classes %}page--blog page--blog__list{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-07-03 00:37:02 +00:00
|
|
|
<h1>Blog</h1>
|
2015-03-16 11:16:42 +00:00
|
|
|
|
2015-07-03 00:37:02 +00:00
|
|
|
{% for post in page.pagination.items %}
|
|
|
|
<article class="post">
|
|
|
|
{% include 'post-header' with { page: post, title_tag: 'h2' } %}
|
2015-06-29 11:52:37 +00:00
|
|
|
|
2015-07-03 00:37:02 +00:00
|
|
|
{% if post.blocks.excerpt %}
|
|
|
|
{{ post.blocks.excerpt|raw }}
|
|
|
|
{% else %}
|
|
|
|
{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} …
|
|
|
|
{% endif %}
|
|
|
|
<a href="{{ post.url }}">Read more →</a>
|
|
|
|
</article>
|
|
|
|
{% endfor %}
|
2015-06-15 08:53:06 +00:00
|
|
|
|
2015-07-03 00:37:02 +00:00
|
|
|
{% if page.pagination.previous_page or page.pagination.next_page %}
|
|
|
|
<nav>
|
|
|
|
{% if page.pagination.previous_page %}
|
|
|
|
<a href="{{ site.url }}{{ page.pagination.previous_page.url }}">Newer Items</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if page.pagination.next_page %}
|
|
|
|
<a href="{{ site.url }}{{ page.pagination.next_page.url }}">Older Items</a>
|
|
|
|
{% endif %}
|
|
|
|
</nav>
|
2015-06-15 08:53:06 +00:00
|
|
|
{% endif %}
|
2015-06-18 16:50:37 +00:00
|
|
|
{% endblock %}
|