Plain text news boxes

This commit is contained in:
Oleg Lavrovsky 2017-05-09 12:21:38 +02:00
parent b6e38488e8
commit f6d5fad12f

View file

@ -3,7 +3,7 @@
<section id="news"> <section id="news">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
{% for entry in newsfeed %} {% for entry in newsfeed %}
<div class="col-md-4 col-sm-6 col-xs-12"> <div class="col-md-4 col-sm-6 col-xs-12">
<div class="panel panel-default"> <div class="panel panel-default">
{% if entry.header_image %} {% if entry.header_image %}
@ -13,10 +13,10 @@
<h3><span>{{ entry.title }}</span></h3> <h3><span>{{ entry.title }}</span></h3>
<p> <p>
{% if entry.excerpt %} {% if entry.excerpt %}
{{ entry.excerpt|richtext }} {{ entry.excerpt|striptags }}
{% else %} {% else %}
{{ entry.body|richtext|truncatewords_html:70 }} {{ entry.body|striptags|truncatewords_html:70 }}
{% endif %} {% endif %}
</p> </p>
<a href="{% pageurl entry %}" class="btn btn-default btn-xs">Mehr erfahren</a> <a href="{% pageurl entry %}" class="btn btn-default btn-xs">Mehr erfahren</a>
</div> </div>
@ -25,7 +25,7 @@
</div> </div>
{% empty %} {% empty %}
No news today No news today
{% endfor %} {% endfor %}
</div> </div>
</div> </div>
</section> </section>