[mod] simplify template

This commit is contained in:
Laurent Peuch 2016-11-01 12:22:14 +01:00
parent 76afaf140d
commit b089fcb502

View File

@ -1,14 +1,18 @@
{% if section.background or section.color %}
<div class="bg-section" style="{% if section.background -%}background: {{ section.background }};{% endif %}{% if section.color -%}color: {{ section.color }};{% endif %}">
{% endif %}
<section class="paragraph">
{% if section.title %}
<h2>{{ section.title }}</h2>
{% else %}
<div class="separator"></div>
{% endif %}
<p>{{ section.text }}</p>
</section>
{% if section.background or section.color %}
</div>
{% endif %}