Minify HTML
This commit is contained in:
parent
8bf421adba
commit
508e407faf
5 changed files with 12 additions and 10 deletions
|
@ -19,7 +19,7 @@ use:
|
|||
{% if post.blocks.excerpt %}
|
||||
{{ post.blocks.excerpt|raw }}
|
||||
{% else %}
|
||||
<p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|replace({ 'h2':'h3' })|raw }} …</p>
|
||||
<p>{{ post.blocks.content|raw|striptags|split(' ')|slice(0,50)|join(' ')|replace({ 'h2':'h3' }) }} …</p>
|
||||
{% endif %}
|
||||
|
||||
<a href="{{ post.url }}">Read more →</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue