Start post tidy

This commit is contained in:
Oliver Davies 2017-12-10 23:38:49 +00:00
parent ccb97c0eff
commit ff05c587cd
10 changed files with 17 additions and 66 deletions

View file

@ -21,11 +21,13 @@ use: [posts]
{% if post.blocks.excerpt %}
{{ post.blocks.excerpt|raw }}
{% elseif '<!-- split -->' in post.blocks.content %}
{{ post.blocks.content|split('<!-- split -->')|first|raw }}
{% else %}
<p>{{ post.blocks.content|raw|striptags|split(' ')|slice(0,50)|join(' ')|replace({ 'h2':'h3' }) }} &hellip;</p>
<p>{{ post.blocks.content|raw|striptags|split(' ')|slice(0,50)|join(' ')|replace({ 'h2': 'h3' }) }} &hellip;</p>
{% endif %}
<a href="{{ post.url }}">Read more &rarr;</a>
<p><a href="{{ post.url }}">Read more &rarr;</a></p>
</li>
{% endfor %}
</ul>