Commit 34a451b8 authored by fred's avatar fred

never truncate news titles

parent 9ea2b3c2
......@@ -17,14 +17,12 @@
{% endif %}
</div>
<div class="content">
<h5 class="title {% if not class %}ellipsis{% endif %}">{{ content.title }}</h5>
<div class="description {% if not class %}ellipsis{% endif %}">
{% if class == "special" %}
{{ content.text|safe|striptags|truncatewords:75}}
{% else %}
{{ content.text|safe|striptags|truncatewords:20}}
{% endif %}
<h5 class="title">{{ content.title }}</h5>
{% if class == "special" %}
<div class="description">
{{ content.text|safe|striptags|truncatewords:75}}
</div>
{% endif %}
</div>
{% if content.date %}
<div class="smooth">{{ content.date|date:"d/m/Y" }}</div>
......
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