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

30 lines
748 B
HTML
Raw Normal View History

2017-02-21 17:00:16 +00:00
{% load wagtailcore_tags %}
2017-03-08 21:02:47 +00:00
{% load wagtailimages_tags %}
2017-02-21 17:00:16 +00:00
2017-01-27 16:06:53 +00:00
<div id="carousel-banner" class="slide">
<div class="carousel-inner slick" role="listbox">
2017-03-08 21:02:47 +00:00
{% for entry in featured %}
2017-01-27 16:06:53 +00:00
<div class="item">
2017-03-08 21:02:47 +00:00
{% image entry.feed_image original as entry_photo %}
<image style="background-image:url({{ entry_photo.url }})">
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-08 21:02:47 +00:00
{% empty %}
No articles found
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 -->