[mod] simplify template
This commit is contained in:
parent
76afaf140d
commit
b089fcb502
@ -1,14 +1,18 @@
|
|||||||
{% if section.background or section.color %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
<section class="paragraph">
|
<section class="paragraph">
|
||||||
|
|
||||||
{% if section.title %}
|
{% if section.title %}
|
||||||
<h2>{{ section.title }}</h2>
|
<h2>{{ section.title }}</h2>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="separator"></div>
|
<div class="separator"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p>{{ section.text }}</p>
|
<p>{{ section.text }}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{% if section.background or section.color %}
|
{% if section.background or section.color %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user