public-health-ch/publichealth/home/templates/banner.html

26 lines
631 B
HTML
Raw Normal View History

2017-02-21 17:00:16 +00:00
{% load wagtailcore_tags %}
2017-01-27 16:06:53 +00:00
<div id="carousel-banner" class="slide">
<div class="carousel-inner slick" role="listbox">
2017-03-07 22:37:55 +00:00
{% for entry in articles %}
2017-01-27 16:06:53 +00:00
<div class="item">
2017-03-07 22:37:55 +00:00
<image style="background-image:url({{ entry.feed_image.src }})" />
2017-01-27 16:06:53 +00:00
<div class="carousel-caption">
2017-03-07 22:37:55 +00:00
<h3>{{ entry.trans_title }}</h3>
<p>{{ entry.trans_intro|richtext }}</p>
2017-01-27 16:06:53 +00:00
</div>
</div>
2017-03-07 22:37:55 +00:00
{% endfor %}
2017-01-27 16:06:53 +00:00
</div>
</div><!-- /carousel-banner -->
<section id="banner">
<div class="container">
<footer class="container">
2017-02-21 17:00:16 +00:00
<p class="lead">
2017-02-23 09:13:44 +00:00
{{ page.trans_intro|richtext }}
2017-02-21 17:00:16 +00:00
</p>
2017-01-27 16:06:53 +00:00
</footer>
</div>
</section><!-- /banner -->