[enh] handle text for full-picture

This commit is contained in:
Laurent Peuch 2015-12-09 05:23:40 +01:00
parent 0cbf9e23f7
commit 67c3b7e5f5

View File

@ -1,10 +1,12 @@
{{ helpers.copy_image(section.image) }} {{ helpers.copy_image(section.image) }}
<section class="full-picture" style="background: transparent url('{{ section.image }}') no-repeat scroll center top / cover;"> <section class="full-picture" style="background: transparent url('{{ section.image }}') no-repeat scroll center top / cover;">
<div class="picture-text"> {% if section.text %}
<div class="picture-text-column"> <div class="picture-text">
<h1>Some title on the picture</h1> <div class="picture-text-column">
<h2>Some subtitle</h2> <h1>{{ section.text.title }}</h1>
<div class="datetime">march 3th 2015</div> <h2>{{ section.text.sub_title }}</h2>
<div class="datetime">{{ section.text.date }}</div>
</div>
</div> </div>
</div> {% endif %}
</section> </section>