Truncate based on character count

This commit is contained in:
mathiascode 2020-04-21 05:22:28 +03:00
parent 3358a89abe
commit b1b9937668

View file

@ -24,7 +24,7 @@ layout: default
News
</span>
{% for post in site.posts limit:1 %}
{{ post.content | strip_html | truncatewords: 8 }}
{{ post.content | strip_html | truncate: 45 }}
{% endfor %}
</a>