Commit 3176dad3 authored by fred's avatar fred

templates: truncate topik texts

parent a38bf150
......@@ -24,7 +24,11 @@
<h5>{{cell.topik.page.title}}</h5>
{% endif %}
<div class="description">
{{cell.text|safe}}
{% if cell.slug == "large" %}
{{cell.text|safe}}
{% else %}
{{cell.text|safe|striptags|truncatewords:75}}
{% endif %}
</div>
</div>
</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment