Combine templates
This commit is contained in:
parent
ff9f0a7b0b
commit
b3c7e26a58
|
@ -1,4 +0,0 @@
|
||||||
<a href="{{ post.url }}" class="button">
|
|
||||||
Read more
|
|
||||||
<span class="visuallyhidden">about {{ post.title }}</span>
|
|
||||||
</a>
|
|
|
@ -1,9 +0,0 @@
|
||||||
{% if post.summary %}
|
|
||||||
{{ post.summary|markdown }}
|
|
||||||
{% include 'pages/blog/read-more' %}
|
|
||||||
{% elseif post.blocks.excerpt is defined %}
|
|
||||||
{{ post.blocks.excerpt|markdown }}
|
|
||||||
{% include 'pages/blog/read-more' %}
|
|
||||||
{% else %}
|
|
||||||
{{ post.blocks.content|markdown }}
|
|
||||||
{% endif %}
|
|
|
@ -1,27 +1,28 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
title: Blog
|
title: Blog
|
||||||
generator: pagination
|
|
||||||
pagination:
|
|
||||||
max_per_page: 10
|
|
||||||
use: [posts]
|
use: [posts]
|
||||||
---
|
---
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<ul class="list-reset">
|
<ul class="list-reset">
|
||||||
{% for post in page.pagination.items %}
|
{% for post in data.posts %}
|
||||||
<li class="mb-12">
|
<li class="mb-12">
|
||||||
<h2 class="text-2xl mb-2">{{ post.title }}</h2>
|
<h2 class="text-2xl mb-1">{{ post.title }}</h2>
|
||||||
|
<p class="text-sm text-grey-dark mb-4">Posted on {{ post.date|date('jS F Y') }}</p>
|
||||||
|
|
||||||
{% include 'post/intro-image' with { page: post } %}
|
{% include 'post/intro-image' with { page: post } %}
|
||||||
|
|
||||||
<div class="markdown mb-4">
|
<div class="markup">
|
||||||
{% include 'pages/blog/teaser' %}
|
<p>{{ post.excerpt }}</p>
|
||||||
|
|
||||||
|
<a href="{{ post.url }}" class="button">
|
||||||
|
Read more
|
||||||
|
<span class="visuallyhidden">about {{ post.title }}</span>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% include 'post-pager' %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
|
|
Reference in a new issue