Combine templates

This commit is contained in:
Oliver Davies 2018-12-31 12:15:23 +00:00
parent ff9f0a7b0b
commit b3c7e26a58
3 changed files with 10 additions and 22 deletions

View file

@ -1,4 +0,0 @@
<a href="{{ post.url }}" class="button">
Read more
<span class="visuallyhidden">about {{ post.title }}</span>
</a>

View file

@ -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 %}