2017-03-14 11:10:32 +01:00
|
|
|
{% load wagtailcore_tags wagtailimages_tags puput_tags %}
|
|
|
|
|
2017-07-26 12:42:06 +02:00
|
|
|
<!-- Front page news -->
|
2017-02-15 10:54:06 +01:00
|
|
|
<section id="news">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-07-03 16:49:12 +02:00
|
|
|
{% for entry in blogentries %}
|
2017-07-26 12:42:06 +02:00
|
|
|
<!-- Blog post {{ entry.id }} -->
|
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12 blog-entry">
|
2017-02-15 10:54:06 +01:00
|
|
|
<div class="panel panel-default">
|
2017-03-14 11:10:32 +01:00
|
|
|
{% if entry.header_image %}
|
|
|
|
{% image entry.header_image fill-360x270 %}
|
|
|
|
{% endif %}
|
2017-02-15 10:54:06 +01:00
|
|
|
<div class="panel-body">
|
2017-03-14 11:10:32 +01:00
|
|
|
<h3><span>{{ entry.title }}</span></h3>
|
|
|
|
<p>
|
|
|
|
{% if entry.excerpt %}
|
2017-05-09 12:21:38 +02:00
|
|
|
{{ entry.excerpt|striptags }}
|
|
|
|
{% else %}
|
2017-07-03 17:21:31 +02:00
|
|
|
{{ entry.body|striptags|truncatewords_html:40 }}
|
2017-05-09 12:21:38 +02:00
|
|
|
{% endif %}
|
2017-03-14 11:10:32 +01:00
|
|
|
</p>
|
2017-09-05 10:54:43 +02:00
|
|
|
<a href="{% pageurl entry %}" class="btn btn-default btn-xs"> 🡆 </a>
|
2017-02-15 10:54:06 +01:00
|
|
|
</div>
|
2017-03-14 11:10:32 +01:00
|
|
|
<a href="{% pageurl entry %}" class="fill"></a>
|
2017-02-15 10:54:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-09-04 15:30:33 +02:00
|
|
|
{% empty %}
|
|
|
|
<!-- No blogs today -->
|
|
|
|
{% endfor %}
|
2017-09-05 10:54:43 +02:00
|
|
|
<!-- <h4 class="partner-news"><a href="/aktuelles/">Partner news</a></h4> -->
|
2017-09-04 15:30:33 +02:00
|
|
|
{% for entry in newsentries %}
|
2017-07-26 12:42:06 +02:00
|
|
|
<!-- News entry {{ entry.id }} -->
|
|
|
|
<div class="col-md-4 col-sm-6 col-xs-12 news-entry">
|
|
|
|
{% if entry.visual %}
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<img src="{{ entry.visual }}">
|
|
|
|
{% else %}
|
|
|
|
<div class="panel panel-fulltext">
|
|
|
|
{% endif %}
|
|
|
|
<div class="panel-body">
|
|
|
|
<h3><span>{{ entry.title|striptags|truncatewords_html:10 }}</span></h3>
|
|
|
|
<p>
|
2017-09-04 23:22:38 +02:00
|
|
|
{{ entry.content|striptags|truncatewords_html:25 }}
|
|
|
|
<em><span>{{ entry.author }}</span></em>
|
2017-07-26 12:42:06 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2017-09-05 11:08:18 +02:00
|
|
|
<a href="/aktuelles/" class="fill"></a>
|
2017-09-05 10:54:43 +02:00
|
|
|
<!-- <a href="{{ entry.link }}" target="_blank" class="fill"></a> -->
|
2017-07-26 12:42:06 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 11:10:32 +01:00
|
|
|
{% empty %}
|
2017-05-31 10:36:09 +02:00
|
|
|
<!-- No news today -->
|
2017-05-09 12:21:38 +02:00
|
|
|
{% endfor %}
|
2017-02-15 10:54:06 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-03-14 11:10:32 +01:00
|
|
|
</section>
|