fix can't truncate full_text
This commit is contained in:
parent
100c004f3a
commit
912f3b57f7
1 changed files with 2 additions and 3 deletions
|
@ -34,11 +34,10 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="blog-lead">
|
<div class="blog-lead">
|
||||||
{% render_model post "abstract" as full_text %}
|
|
||||||
{% if not TRUNCWORDS_COUNT %}
|
{% if not TRUNCWORDS_COUNT %}
|
||||||
{{ full_text }}
|
{% render_model post "abstract" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ full_text|truncatewords_html:TRUNCWORDS_COUNT }}
|
{% render_model post "abstract" "" "" 'truncatewords_html:TRUNCWORDS_COUNT' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<footer class="read-more">
|
<footer class="read-more">
|
||||||
|
|
Loading…
Reference in a new issue