From 068fece9669f57430948dd489f51bb9750c617d5 Mon Sep 17 00:00:00 2001 From: Neil Smith Date: Tue, 11 Oct 2016 11:47:41 +0100 Subject: [PATCH] Added truncation to post text in list view --- blog/templates/blog/post_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1