public-health-ch/publichealth/home/templates/banner.html
Oleg Lavrovsky 0f27d97d64 Header menu
2017-03-08 22:33:40 +01:00

28 lines
737 B
HTML

{% load wagtailcore_tags wagtailimages_tags %}
<div id="carousel-banner" class="slide">
<div class="carousel-inner slick" role="listbox">
{% for entry in featured %}
<div class="item">
{% image entry.feed_image original as entry_photo %}
<image style="background-image:url({{ entry_photo.url }})">
<div class="carousel-caption">
<h3>{{ entry.trans_title }}</h3>
<p>{{ entry.trans_intro|richtext }}</p>
</div>
</div>
{% empty %}
No articles found
{% endfor %}
</div>
</div><!-- /carousel-banner -->
<section id="banner">
<div class="container">
<footer class="container">
<p class="lead">
{{ page.trans_intro|richtext }}
</p>
</footer>
</div>
</section><!-- /banner -->