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

31 lines
822 B
HTML
Raw Normal View History

2017-03-08 21:33:40 +00:00
{% load wagtailcore_tags 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-04-12 11:50:01 +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-03-08 22:04:08 +00:00
<a href="{% pageurl entry %}">
<div class="carousel-caption">
<h3>{{ entry.trans_title }}</h3>
2017-05-16 10:00:35 +00:00
{{ entry.trans_intro|richtext }}
2017-03-08 22:04:08 +00:00
</div>
</a>
2017-01-27 16:06:53 +00:00
</div>
2017-03-08 21:02:47 +00:00
{% empty %}
2018-06-28 14:10:54 +00:00
<!-- Tip: add articles to the front page using the "Featured" option. -->
2017-04-12 11:50:01 +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 -->