|
|
|
|
@ -40,8 +40,8 @@ |
|
|
|
|
</small> |
|
|
|
|
</p> |
|
|
|
|
<p class="text-center"> |
|
|
|
|
{% set im = object.image|thumbnail("400x400") %} |
|
|
|
|
<a href="{{ url('news_detail', args=(object.slug,)) }}"><img src="/static/{{ im.url }}" alt="{{ object.title }}" title="{{ object.title }}"/></a> |
|
|
|
|
{# {% set im = object.image|thumbnail("400x400") %}#} |
|
|
|
|
<a href="{{ url('news_detail', args=(object.slug,)) }}"><img src="/static/{{ object.image.url }}" alt="{{ object.title }}" title="{{ object.title }}" style="max-width: 100%"/></a> |
|
|
|
|
</p> |
|
|
|
|
{{ object.text|truncate(520)|linebreaks|safe }} |
|
|
|
|
<p class="text-right"><a href="{{ url('news_detail', args=(object.slug,)) }}">Продолжить читать →</a> |
|
|
|
|
|