[mod] simplify template
This commit is contained in:
parent
76afaf140d
commit
b089fcb502
@ -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 %}">
|
||||
<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>
|
||||
|
||||
{% 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>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user