I’m currently setting up a blog using the antimatter theme.
Apparently the blog.html.yaml
file does offer the possibility to truncate posts displayed on the main blog page.
However, looking the blog_item.html.yaml
file, it appears that the truncate option serves no purpose :
{% elseif truncate and page.summary != page.content %}
<div class="p-summary e-content">
{{ page.summary }}
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
</div>
{% elseif truncate %}
<div class="p-summary e-content">
{{ page.content }}
<p><a href="{{ page.url }}">{{ 'BLOG.ITEM.CONTINUE_READING'|t }}</a></p>
</div>
So I’ve tried to replace the {{ page.content }}
by {{ page.content|truncate(550)}}
. This is the method used in the PinPress theme to truncate the posts. However, doing so just removes my whole content, and the front blog page just display the titles, dates and tags of my posts.
Do you have any idea why this happens?
Thanks in advance.