Ensure a proper heading structure

Replace h2s with h3s so that they are not at the same level as the h2s for the post titles.
This commit is contained in:
Oliver Davies 2015-07-21 18:11:56 +01:00
parent 73a0931377
commit 167617dc0c
2 changed files with 1 additions and 9 deletions

View file

@ -19,7 +19,7 @@ use:
{% if post.blocks.excerpt %}
{{ post.blocks.excerpt|raw }}
{% else %}
<p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|raw }} &hellip;</p>
<p>{{ post.blocks.content|raw|split(' ')|slice(0,50)|join(' ')|replace({ 'h2':'h3' })|raw }} &hellip;</p>
{% endif %}
<a href="{{ post.url }}">Read more &rarr;</a>