Start post tidy
This commit is contained in:
parent
ccb97c0eff
commit
ff05c587cd
10 changed files with 17 additions and 66 deletions
|
@ -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' }) }} …</p>
|
||||
<p>{{ post.blocks.content|raw|striptags|split(' ')|slice(0,50)|join(' ')|replace({ 'h2': 'h3' }) }} …</p>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ post.url }}">Read more →</a>
|
||||
<p><a href="{{ post.url }}">Read more →</a></p>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue