fix can't truncate full_text

This commit is contained in:
Max Vyaznikov 2014-02-27 16:58:17 +03:00
parent 100c004f3a
commit 912f3b57f7

View file

@ -34,11 +34,10 @@
</div>
{% endif %}
<div class="blog-lead">
{% render_model post "abstract" as full_text %}
{% if not TRUNCWORDS_COUNT %}
{{ full_text }}
{% render_model post "abstract" %}
{% else %}
{{ full_text|truncatewords_html:TRUNCWORDS_COUNT }}
{% render_model post "abstract" "" "" 'truncatewords_html:TRUNCWORDS_COUNT' %}
{% endif %}
</div>
<footer class="read-more">