Cleaner homepage

This commit is contained in:
Evarin 2017-09-27 23:58:50 +02:00
parent 38af50a866
commit 0e19abb51a
4 changed files with 62 additions and 27 deletions

View file

@ -17,12 +17,15 @@
<div class="actu-header" {% if actu.image %}{% image actu.image fill-400x200 as img %}style="background-image:url('{{ img.url }}');"{% endif %}>
<h2><a href="{% pageurl actu %}">{{ actu.title }}</a></h2>
</div>
{% if actu.is_event %}
<div class="actu-misc">
<div class="actu-misc">
{% if actu.is_event %}
{% get_current_language as curlang %}
<span class="actu-minical">{% mini_calendar actu curlang %}</span><span class="actu-dates">{{ actu.dates }}</span>
</div>
{% endif %}
{% else %}
{{ actu.body|safe|truncatewords_html:25 }}
{% endif %}
</div>
<a href="{% pageurl actu %}" class="actu-overlay"></a>
</article>
{% endfor %}
</section>