From: Neil Smith Date: Tue, 11 Oct 2016 10:47:41 +0000 (+0100) Subject: Added truncation to post text in list view X-Git-Url: https://git.njae.me.uk/?a=commitdiff_plain;h=068fece9669f57430948dd489f51bb9750c617d5;p=django-girls.git Added truncation to post text in list view --- diff --git a/blog/templates/blog/post_list.html b/blog/templates/blog/post_list.html index eb1647a..d3fa8ef 100644 --- a/blog/templates/blog/post_list.html +++ b/blog/templates/blog/post_list.html @@ -7,7 +7,7 @@

published: {{ post.published_date }}

{{ post.title }}

-

{{ post.text|linebreaksbr }}

+

{{ post.text|linebreaksbr|truncatewords_html:100 }}

{% endfor %} {% endblock %} \ No newline at end of file